Skip to content

Commit 6b254de

Browse files
committed
fix: Fix CI
1 parent 28589a6 commit 6b254de

File tree

2 files changed

+15
-34
lines changed

2 files changed

+15
-34
lines changed

.github/workflows/check-code.yml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- "tests/**"
1111
- "pyproject.toml"
1212
- "uv.lock"
13-
- "justfile"
1413
- "nix/**"
1514
- "flake.nix"
1615
- "flake.lock"
@@ -21,7 +20,7 @@ concurrency:
2120
cancel-in-progress: true
2221

2322
jobs:
24-
build-test:
23+
check-code:
2524
# Ubicloud managed runner
2625
runs-on: ubicloud-standard-2
2726

@@ -43,25 +42,20 @@ jobs:
4342
- name: Install Python ${{ matrix.python-version }}
4443
run: uv python install ${{ matrix.python-version }}
4544

46-
- name: Install just
47-
run: |
48-
sudo apt-get update
49-
sudo apt-get install -y just
50-
5145
- name: Sync dependencies
5246
run: uv sync
5347

54-
- name: Lint & Format (via just)
55-
run: just lint
56-
57-
- name: Typecheck (via just)
58-
run: just typecheck
48+
- name: Lint & Format
49+
run: |
50+
uv run ruff format --check ./src
51+
uv run ruff check ./src
52+
uv run basedpyright ./src
5953
60-
- name: Test (via just)
61-
run: just test
54+
- name: Test
55+
run: uv run pytest -q
6256

63-
- name: Coverage (via just)
64-
run: just cov
57+
- name: Coverage
58+
run: uv run pytest --cov=torusdk --cov-report=term-missing --cov-report=xml
6559

6660
- name: Upload coverage XML
6761
uses: actions/upload-artifact@v4
@@ -71,21 +65,7 @@ jobs:
7165

7266
- name: Enforce Towncrier fragment on PRs
7367
if: ${{ github.event_name == 'pull_request' }}
74-
run: just news-check
68+
run: uv run towncrier check --compare-with origin/main
7569

7670
- name: Build package
77-
run: just build
78-
79-
# Separate job for Nix-specific checks
80-
nix-checks:
81-
runs-on: ubicloud-standard-2
82-
83-
steps:
84-
- name: Checkout
85-
uses: actions/checkout@v4
86-
87-
- name: Install Nix
88-
uses: DeterminateSystems/nix-installer-action@main
89-
90-
- name: Check Nix flake
91-
run: nix flake check
71+
run: uv build

.github/workflows/check-nix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ on:
66
branches: [main, dev]
77

88
jobs:
9-
checks:
9+
check-nix:
1010
runs-on: ubicloud-standard-2
1111
permissions:
1212
contents: read
1313
id-token: write
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Install Nix
1818
uses: DeterminateSystems/nix-installer-action@main
19+
1920
# - uses: DeterminateSystems/magic-nix-cache-action@main
2021

2122
- name: Check health of flake.lock

0 commit comments

Comments
 (0)