File tree Expand file tree Collapse file tree 6 files changed +56
-48
lines changed
Expand file tree Collapse file tree 6 files changed +56
-48
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Nix checks
33on :
44 pull_request :
55 push :
6- branches : [main]
6+ branches : [main, dev ]
77
88jobs :
99 checks :
1616
1717 - name : Install Nix
1818 uses : DeterminateSystems/nix-installer-action@main
19-
20- - uses : DeterminateSystems/magic-nix-cache-action@main
19+ # - uses: DeterminateSystems/magic-nix-cache-action@main
2120
2221 - name : Check health of flake.lock
2322 uses : DeterminateSystems/flake-checker-action@main
Original file line number Diff line number Diff line change @@ -2,26 +2,28 @@ name: "Tests"
22
33on :
44 workflow_dispatch :
5- pull_request :
6- push :
7- branches : [main]
8- paths :
9- - " src/**"
10- - " tests/**"
11- - " pyproject.toml"
12- - " poetry.lock"
13- - " nix/**"
14- - " flake.nix"
15- - " flake.lock"
5+ # # Workflow is disabled, uncomment the lines below to enable
6+ # pull_request:
7+ # push:
8+ # branches: [main]
9+ # paths:
10+ # - "src/**"
11+ # - "tests/**"
12+ # - "pyproject.toml"
13+ # - "poetry.lock"
14+ # - "nix/**"
15+ # - "flake.nix"
16+ # - "flake.lock"
1617
1718jobs :
1819 tests :
1920 runs-on : ubuntu-latest
2021 steps :
2122 - uses : actions/checkout@v3
2223
23- - uses : DeterminateSystems/nix-installer-action@main
24- - uses : DeterminateSystems/magic-nix-cache-action@main
24+ - name : Install Nix
25+ uses : DeterminateSystems/nix-installer-action@main
26+ # - uses: DeterminateSystems/magic-nix-cache-action@main
2527
2628 - name : install Poetry dependencies
2729 run : nix develop --command poetry install --with dev
Original file line number Diff line number Diff line change 1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v3
22-
22+
2323 - uses : DeterminateSystems/nix-installer-action@main
24- - uses : DeterminateSystems/magic-nix-cache-action@main
24+ # - uses: DeterminateSystems/magic-nix-cache-action@main
2525
2626 - name : install Poetry dependencies
2727 run : nix develop --command poetry install --with dev,examples
Original file line number Diff line number Diff line change 11{
22 "cSpell.words" : [
3- " COMAI" ,
4- " torus" ,
53 " dmap" ,
64 " fastapi" ,
75 " keypair" ,
86 " netuid" ,
97 " openai" ,
10- " PKCS" ,
118 " pydantic" ,
9+ " pyproject" ,
10+ " torus" ,
1211 " torustrateinterface" ,
1312 " typer" ,
1413 " unstake" ,
1514 " uvicorn"
1615 ],
1716 // "python.analysis.extraPaths": ["./sources"],
18-
19- "python.analysis.extraPaths" : [" /home/manjairo/tcheco/torustrate-interface" ],
2017 "python.autoComplete.extraPaths" : [
2118 " /home/manjairo/tcheco/torustrate-interface"
2219 ]
Original file line number Diff line number Diff line change 11.PHONY : all clean check lint type_check test test_slow docs_run docs_generate docs_copy_assets docs_build
22
3+ # TODO: migrate to just
4+
35all : check
46
57clean :
810 rm -rf .ruff_cache
911 rm -rf dist
1012
13+
14+ # ==== Checks ====
15+
1116check : lint type_check
1217
1318lint :
@@ -25,17 +30,21 @@ check_format:
2530format :
2631 ruff format ./src
2732
28- # fmt:
29- # isort ./src
30- # autopep8 --in-place --recursive ./src
3133
32- test_all : test test_slow
34+ # ==== Tests ====
35+
36+ # TODO: re-add tests
37+
38+ # test_all: test test_slow
39+
40+ # test:
41+ # pytest -k "not slow"
42+
43+ # test_slow:
44+ # pytest -k "slow"
3345
34- test :
35- pytest -k " not slow"
3646
37- test_slow :
38- pytest -k " slow"
47+ # ==== Docs ====
3948
4049docs_run :
4150 @echo " URL: http://localhost:8080/torus"
You can’t perform that action at this time.
0 commit comments