Skip to content

Commit f8b4bc5

Browse files
committed
chore(ci): use just commands instead of direct uv/mypy calls
Refactor CI workflow to use just commands for consistency with local development workflow. This removes the obsolete server.py exclusion from mypy (file was removed in bcb12b4) and makes justfile's install command accept optional extras arguments. Changes: - CI now uses `just install`, `just lint`, `just mypy`, `just test` - justfile install command accepts variable extras arguments - Removes Python 3.9 special case for server.py exclusion
1 parent e0a67c2 commit f8b4bc5

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,13 @@ jobs:
3737
uses: ./.github/actions/setup-nix
3838

3939
- name: Install dependencies
40-
run: nix develop --command uv sync ${{ matrix.sync-extras }}
40+
run: nix develop --command just install ${{ matrix.sync-extras }}
4141

4242
- name: Run Lint
43-
run: nix develop --command uv run ruff check .
43+
run: nix develop --command just lint
4444

4545
- name: Run Mypy
46-
run: |
47-
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
48-
nix develop --command uv run mypy stackone_ai --exclude stackone_ai/server.py
49-
else
50-
nix develop --command uv run mypy stackone_ai
51-
fi
46+
run: nix develop --command just mypy
5247

5348
- name: Run Tests
54-
run: nix develop --command uv run pytest
49+
run: nix develop --command just test

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Install dependencies and pre-commit hooks
2-
install:
3-
uv sync --all-extras
2+
install *extras:
3+
uv sync {{ extras }}
44

55
# Run ruff linting
66
lint:

0 commit comments

Comments
 (0)