nix-eval-jobs/.github/workflows/test-flakes.yml
dependabot[bot] c3ed61b075
Bump cachix/install-nix-action from 15 to 16
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v16)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 23:09:53 +00:00

29 lines
681 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@v16
- 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/nix-eval-jobs ./build/src/nix-eval-jobs
nix develop -c pytest ./tests