Skip to content

Commit 2a77af0

Browse files
Copilotncrmro
andcommitted
Update validate workflow to use Nix development shell
Co-authored-by: ncrmro <8276365+ncrmro@users.noreply.github.com>
1 parent 8742708 commit 2a77af0

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/validate.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,21 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Install uv
22-
uses: astral-sh/setup-uv@v4
21+
- name: Install Nix
22+
uses: cachix/install-nix-action@v31
2323
with:
24-
version: "latest"
24+
nix_path: nixpkgs=channel:nixos-unstable
2525

26-
- name: Set up Python
27-
uses: actions/setup-python@v5
28-
with:
29-
python-version: "3.11"
26+
- name: Setup Nix development environment
27+
uses: nicknovitski/nix-develop@v1
3028

31-
- name: Install dependencies
29+
- name: Install Python dependencies
3230
run: uv sync --extra dev
3331

3432
- name: Check formatting (ruff)
3533
run: |
36-
uv run ruff format --check src/ tests/
37-
uv run ruff check src/ tests/
34+
ruff format --check src/ tests/
35+
ruff check src/ tests/
3836
3937
- name: Run tests
40-
run: uv run pytest tests/ -v
38+
run: pytest tests/ -v

0 commit comments

Comments
 (0)