2022-01-08 08:22:01 +00:00
|
|
|
name: "Development workflow - nix-shell"
|
2021-03-15 05:09:41 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2021-03-15 05:09:41 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2021-03-15 05:09:41 +00:00
|
|
|
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-11-22 23:09:53 +00:00
|
|
|
- uses: cachix/install-nix-action@v16
|
2022-01-08 08:22:01 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: Build
|
|
|
|
run: nix-shell --run 'meson build && cd build && ninja'
|
|
|
|
- name: Run tests
|
|
|
|
run: nix-shell --run 'pytest ./tests'
|