nix-eval-jobs/.github/workflows/test-develop-flakes.yml

24 lines
545 B
YAML
Raw Normal View History

name: "Development workflow"
2021-03-15 05:19:54 +00:00
on:
pull_request:
push:
branches:
- main
2022-10-31 06:14:24 +00:00
- release-*
2021-03-15 05:19:54 +00:00
jobs:
tests:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
2021-03-15 05:19:54 +00:00
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v18
2021-03-15 05:19:54 +00:00
- name: Build
run: nix develop -c bash -c 'meson build && cd build && ninja'
2021-03-21 18:18:03 +00:00
- name: Run tests
run: nix develop -c pytest ./tests