-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
52 lines (43 loc) · 983 Bytes
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- task -l
silent: true
check:
desc: Run all pre-commit hooks
cmds:
- pre-commit run -a
pre-commit:
cmds:
- pre-commit install
sources:
- .git/hooks/pre-commit
- .pre-commit-config.yaml
generates:
- .git/hooks/pre-commit
method: checksum
test:
desc: Run python test and coverage
cmds:
- pytest .
build:
desc: "Build python wheel"
cmds:
- poetry build
publish:
desc: "Publish wheel to pypi"
cmds:
- poetry publish -u $PYPI_USERNAME -p $PYPI_TOKEN
deps:
- build
clean:
desc: Cleanup
cmds:
- rm -rf ./dist
# nix:build:
# desc: Build nix derivation
# cmds:
# - nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push pdh
# - nix flake archive --json | jq --raw-output '.path, (.inputs | to_entries [] .value.path)' | cachix push pdh