adisbladis
8bb83e4c69
We are essentially testing the same thing in the Flake check, the difference is in the nix-shell vs `nix develop` invocation. I will admit (even though this is my making) that it's a bit silly to essentially test the same thing twice.
23 lines
527 B
YAML
23 lines
527 B
YAML
name: "Development workflow"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
# Nix Flakes doesn't work on shallow clones
|
|
fetch-depth: 0
|
|
- uses: cachix/install-nix-action@v17
|
|
- name: Build
|
|
run: nix develop -c bash -c 'meson build && cd build && ninja'
|
|
- name: Run tests
|
|
run: nix develop -c pytest ./tests
|