2022-01-08 08:22:01 +00:00
|
|
|
name: "Development workflow - flakes"
|
2021-03-15 05:19:54 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-03-07 23:12:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-15 05:19:54 +00:00
|
|
|
with:
|
|
|
|
# Nix Flakes doesn't work on shallow clones
|
|
|
|
fetch-depth: 0
|
2021-11-22 23:09:53 +00:00
|
|
|
- uses: cachix/install-nix-action@v16
|
2021-03-15 05:19:54 +00:00
|
|
|
- name: Build
|
2022-01-08 08:22:01 +00:00
|
|
|
run: nix develop -c bash -c 'meson build && cd build && ninja'
|
2021-03-21 18:18:03 +00:00
|
|
|
- name: Run tests
|
2022-01-08 08:22:01 +00:00
|
|
|
run: nix develop -c pytest ./tests
|