-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.15 KB
/
tests.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
name: Tests
on:
push:
branches:
- main
paths-ignore:
- '*.md'
pull_request:
branches:
- main
paths-ignore:
- '*.md'
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: Linux, python: '3.11', os: ubuntu-latest, nox: "tests"}
- {name: Windows, python: '3.10', os: windows-latest, nox: "tests"}
- {name: Mac, python: '3.10', os: macos-latest, nox: "tests"}
- {name: Py312, python: '3.12', os: ubuntu-latest, nox: "tests"}
- {name: Py310, python: '3.10', os: ubuntu-latest, nox: "tests"}
- {name: Lint, python: '3.11', os: ubuntu-latest, nox: "lint"}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Update pip and install nox
run: |
pip install --upgrade pip
pip install nox
- name: Run pip compile
run: nox --session=compile
- name: Run tests
run: nox --session=${{ matrix.nox }} --python=${{ matrix.python }}