-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1022 Bytes
/
nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: nix
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
platform:
- ubuntu
- macos
generator:
- Ninja
- Unix Makefiles
shared:
- ON
- OFF
flavor:
- release
- debug
runs-on: ${{ matrix.platform }}-latest
env:
GENERATOR: ${{ matrix.generator }}
SHARED: ${{ matrix.shared }}
FLAVOR: ${{ matrix.flavor }}
install_dir: /usr/local
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: install environment
uses: ./.github/actions/install-nix
with:
cache-key-python: ${{ secrets.CACHE_PYTHON }}
- name: install pytest
run: poetry install
- name: export cupcake
uses: ./.github/actions/export-cupcake
- name: test
run: poetry run pytest