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
22 lines (22 loc) · 910 Bytes
/
Taskfile.yaml
File metadata and controls
22 lines (22 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: "3"
tasks:
server:
cmds:
- cmd: lsof -ti :8000 | xargs kill -9
ignore_error: true
- uvicorn --factory --host 0.0.0.0 speaches.main:create_app {{.CLI_ARGS}}
sources:
- src/**/*.py
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 main --driver=docker-container
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