Skip to content

Commit

Permalink
Run the tests in the nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Dec 1, 2023
1 parent 44949b4 commit c440b2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,12 @@ jobs:
python -m pip install .[doc]
- name: Build the documentation
run: make -C doc html man

nix:
runs-on: ubuntu-latest
steps:
- name: Install Nix
uses: cachix/install-nix-action@v20
- uses: actions/checkout@v3
- name: Build the nix derivation (also runs the tests)
run: nix build --print-build-logs
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
cp -r $src/khard/data $out/lib/python*/site-packages/khard
'';
src = ./.;
pyproject = true;
doCheck = true;
checkPhase = "python -m unittest -v";
});
devShells.x86_64-linux.release =
let pkgs = nixpkgs.legacyPackages.x86_64-linux; in
Expand Down

0 comments on commit c440b2f

Please sign in to comment.