-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (43 loc) · 1.2 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Install Devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
- name: Check formatting
run: devbox run -- black --check .
- name: Lint
run: devbox run lint
- name: Test
run: devbox run test
test_python_version:
name: "Test (Python ${{ matrix.python_version.number }})"
runs-on: ubuntu-latest
strategy:
matrix:
python_version:
- number: "3.8"
config: "python-3_8"
- number: "3.9"
config: "python-3_9"
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Install Devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
project-path: "ci/${{ matrix.python_version.config }}"
- name: Test
run: devbox --config ci/${{ matrix.python_version.config }} run test