forked from speaches-ai/speaches
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
18 lines (18 loc) · 908 Bytes
/
Taskfile.yaml
File metadata and controls
18 lines (18 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: "3"
tasks:
speaches-hot-reload:
cmds:
- uvicorn --factory --host 0.0.0.0 speaches.main:create_app --reload --reload-dir src/ --timeout-graceful-shutdown 1 {{.CLI_ARGS}}
test:
cmds:
- pytest -o log_cli=true -o log_cli_level=DEBUG {{.CLI_ARGS}}
sources:
- src/**/*.py
create-multi-arch-builder: docker buildx create --name multi-arch-builder --driver docker-container --bootstrap --use
ci:
cmds:
- act --rm --action-offline-mode --secret-file .secrets {{.CLI_ARGS}}
# Python's urllib3 takes forever when ipv6 is enabled
# https://support.nordvpn.com/hc/en-us/articles/20164669224337-How-to-disable-IPv6-on-Linux
disable-ipv6: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
enable-ipv6: sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0