forked from lix-project/nix-eval-jobs
Remove old tests and add development workflow tests
This commit is contained in:
parent
1c6887b5bf
commit
5b9621cd6c
|
@ -1,4 +1,4 @@
|
||||||
name: "Test"
|
name: "Development workflow - nix-shell"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
@ -13,5 +13,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cachix/install-nix-action@v16
|
- uses: cachix/install-nix-action@v16
|
||||||
- name: build
|
with:
|
||||||
run: NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz nix-build --expr '(import <nixpkgs> { }).callPackage ./. { }'
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- name: Build
|
||||||
|
run: nix-shell --run 'meson build && cd build && ninja'
|
||||||
|
- name: Run tests
|
||||||
|
run: nix-shell --run 'pytest ./tests'
|
|
@ -1,4 +1,4 @@
|
||||||
name: "Flake test"
|
name: "Development workflow - flakes"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
@ -16,11 +16,7 @@ jobs:
|
||||||
# Nix Flakes doesn't work on shallow clones
|
# Nix Flakes doesn't work on shallow clones
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: cachix/install-nix-action@v16
|
- uses: cachix/install-nix-action@v16
|
||||||
- name: List flake structure
|
|
||||||
run: nix flake show
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: nix build --out-link result
|
run: nix develop -c bash -c 'meson build && cd build && ninja'
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: nix develop -c pytest ./tests
|
||||||
nix develop -c install -D ./result/bin/nix-eval-jobs ./build/src/nix-eval-jobs
|
|
||||||
nix develop -c pytest ./tests
|
|
Loading…
Reference in a new issue