run tests in CI

This commit is contained in:
Jörg Thalheim 2021-03-21 19:18:03 +01:00
parent 71cbe4eab4
commit 76c3e68ccd
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4
2 changed files with 8 additions and 2 deletions

View file

@ -26,4 +26,8 @@ jobs:
- name: List flake structure
run: nix flake show
- name: Build
run: nix build
run: nix build --out-link result
- name: Run tests
run: |
nix develop -c install -D ./result/bin/hydra-eval-jobs ./build/src/hydra-eval-jobs
nix develop -c pytest ./tests

View file

@ -1,4 +1,6 @@
with import <nixpkgs> {};
let
pkgs = import (builtins.getFlake (toString ./.)).inputs.nixpkgs {};
in
{
builtJob = pkgs.writeText "job1" "job1";
substitutedJob = pkgs.hello;