Skip to content

Commit ba96981

Browse files
committed
Revert "feat(nix): integrate uv2nix for Python dependency management (#88)"
This reverts commit ee67062.
1 parent edc9908 commit ba96981

File tree

5 files changed

+84
-268
lines changed

5 files changed

+84
-268
lines changed
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: "Setup Nix"
22
description: "Install Nix and configure cache"
3-
inputs:
4-
python-version:
5-
description: "Python version for cache key (e.g., python311, python313)"
6-
required: false
7-
default: "python311"
83
runs:
94
using: "composite"
105
steps:
@@ -16,8 +11,8 @@ runs:
1611
- name: Cache Nix store
1712
uses: nix-community/cache-nix-action@b426b118b6dc86d6952988d396aa7c6b09776d08 # v7
1813
with:
19-
primary-key: nix-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('flake.lock', 'uv.lock', 'pyproject.toml', 'src/**/*.py') }}
20-
restore-prefixes-first-match: |
21-
nix-${{ runner.os }}-${{ inputs.python-version }}-
22-
nix-${{ runner.os }}-
23-
gc-max-store-size: 4G
14+
primary-key: nix-${{ runner.os }}
15+
16+
- name: Load Nix development environment
17+
shell: bash
18+
run: nix develop --command true

.github/workflows/ci.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
python-version: ["python311", "python313"]
37+
python-version: ["3.11", "3.13"]
38+
include:
39+
- python-version: "3.11"
40+
sync-extras: "--all-extras"
41+
- python-version: "3.13"
42+
sync-extras: "--all-extras"
3843
steps:
3944
- name: Checkout repository
4045
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -43,17 +48,18 @@ jobs:
4348

4449
- name: Setup Nix
4550
uses: ./.github/actions/setup-nix
46-
with:
47-
python-version: ${{ matrix.python-version }}
51+
52+
- name: Install dependencies
53+
run: nix develop --command just install ${{ matrix.sync-extras }}
4854

4955
- name: Run Lint
50-
run: nix develop .#${{ matrix.python-version }} --command just lint
56+
run: nix develop --command just lint
5157

5258
- name: Run Ty
53-
run: nix develop .#${{ matrix.python-version }} --command just ty
59+
run: nix develop --command just ty
5460

5561
- name: Run Tests
56-
run: nix develop .#${{ matrix.python-version }} --command just test
62+
run: nix develop --command just test
5763

5864
coverage:
5965
runs-on: ubuntu-latest
@@ -67,6 +73,9 @@ jobs:
6773
- name: Setup Nix
6874
uses: ./.github/actions/setup-nix
6975

76+
- name: Install dependencies
77+
run: nix develop --command just install --all-extras
78+
7079
- name: Run Tests with Coverage
7180
run: nix develop --command just coverage
7281

flake.lock

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

0 commit comments

Comments
 (0)