forked from lix-project/nix-eval-jobs
run tests in CI
This commit is contained in:
parent
71cbe4eab4
commit
76c3e68ccd
6
.github/workflows/test-flakes.yml
vendored
6
.github/workflows/test-flakes.yml
vendored
|
@ -26,4 +26,8 @@ jobs:
|
||||||
- name: List flake structure
|
- name: List flake structure
|
||||||
run: nix flake show
|
run: nix flake show
|
||||||
- name: Build
|
- 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
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
with import <nixpkgs> {};
|
let
|
||||||
|
pkgs = import (builtins.getFlake (toString ./.)).inputs.nixpkgs {};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
builtJob = pkgs.writeText "job1" "job1";
|
builtJob = pkgs.writeText "job1" "job1";
|
||||||
substitutedJob = pkgs.hello;
|
substitutedJob = pkgs.hello;
|
||||||
|
|
Loading…
Reference in a new issue