2021-03-15 05:19:54 +00:00
|
|
|
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
|
2021-11-15 23:11:14 +00:00
|
|
|
- uses: cachix/install-nix-action@v15
|
2021-03-15 05:19:54 +00:00
|
|
|
- name: List flake structure
|
|
|
|
run: nix flake show
|
|
|
|
- name: Build
|
2021-03-21 18:18:03 +00:00
|
|
|
run: nix build --out-link result
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
2021-08-25 08:29:10 +00:00
|
|
|
nix develop -c install -D ./result/bin/nix-eval-jobs ./build/src/nix-eval-jobs
|
2021-03-21 18:18:03 +00:00
|
|
|
nix develop -c pytest ./tests
|