forked from lix-project/nix-eval-jobs
4af1e548e9
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v12 to v13. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27) Signed-off-by: dependabot[bot] <support@github.com>
34 lines
966 B
YAML
34 lines
966 B
YAML
name: "Flake test"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: '51 2 * * *'
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
# Nix Flakes doesn't work on shallow clones
|
|
fetch-depth: 0
|
|
- uses: cachix/install-nix-action@v13
|
|
with:
|
|
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
system-features = nixos-test benchmark big-parallel kvm
|
|
- name: List flake structure
|
|
run: nix flake show
|
|
- name: 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
|