-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 987 Bytes
/
Copy pathpython-build-tests.yaml
File metadata and controls
46 lines (36 loc) · 987 Bytes
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
45
46
name: Python build
on:
push:
paths:
- '.github/workflows/python-build-tests.yaml'
- 'flake.nix'
- 'devshell.nix'
- 'pyproject.toml'
- 'requirements.txt'
pull_request:
paths:
- '.github/workflows/python-build-tests.yaml'
- 'flake.nix'
- 'devshell.nix'
- 'pyproject.toml'
- 'requirements.txt'
jobs:
run-tests:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up Cachix
uses: cachix/cachix-action@v12
with:
name: devenv
- name: Build developer environment
run: ./bin/env-run echo "Devshell built"
- name: Run SPPL tests
run: ./bin/env-run python -m pytest --pyargs sppl