Skip to content

Commit ee63350

Browse files
committed
chore: disable CI tests and clean up workflows
- Disable GitHub Actions tests.yml workflow - Rename nix_checks.yml to nix-checks.yml for consistency - Comment out magic-nix-cache-action in workflows - Update dependencies in flake.lock - Comment out test section in Makefile
1 parent 2bab705 commit ee63350

File tree

6 files changed

+56
-48
lines changed

6 files changed

+56
-48
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Nix checks
33
on:
44
pull_request:
55
push:
6-
branches: [main]
6+
branches: [main, dev]
77

88
jobs:
99
checks:
@@ -16,8 +16,7 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,28 @@ name: "Tests"
22

33
on:
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

1718
jobs:
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

.github/workflows/type-checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
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

.vscode/settings.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
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
]

Makefile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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+
35
all: check
46

57
clean:
@@ -8,6 +10,9 @@ clean:
810
rm -rf .ruff_cache
911
rm -rf dist
1012

13+
14+
# ==== Checks ====
15+
1116
check: lint type_check
1217

1318
lint:
@@ -25,17 +30,21 @@ check_format:
2530
format:
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

4049
docs_run:
4150
@echo "URL: http://localhost:8080/torus"

flake.lock

Lines changed: 18 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)