Skip to content

Commit

Permalink
Add check of Nix Flake in CI
Browse files Browse the repository at this point in the history
The Nix Flake broke as development happened on Alga and the flake wasn't kept
up to date. This should help ensure that isn't a problem going forward.
  • Loading branch information
Tenzer committed Dec 23, 2024
1 parent 29d8b62 commit d68c69d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,30 @@ jobs:
- name: Run mypy
run: poetry run mypy .

nix-flake:
runs-on: ubuntu-24.04

steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3

- name: Cache Nix
uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Build package
run: nix build

- name: Run command
run: nix run

pre-commit:
runs-on: ubuntu-24.04

Expand Down Expand Up @@ -111,6 +135,7 @@ jobs:

needs:
- mypy
- nix-flake
- pre-commit
- pytest
- usage
Expand Down

0 comments on commit d68c69d

Please sign in to comment.