-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (29 loc) · 1.13 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
name: Tests
on:
- push
- pull_request
jobs:
tests:
name: ${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { python-version: "3.12", os: ubuntu-latest }
- { python-version: "3.11", os: ubuntu-latest }
- { python-version: "3.10", os: ubuntu-latest }
- { python-version: "3.9", os: ubuntu-latest }
- { python-version: "3.12", os: windows-latest }
- { python-version: "3.12", os: macos-latest }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: python -m pip install --constraint=.github/workflows/constraints.txt pip --user
- run: python -m pip install --constraint=.github/workflows/constraints.txt nox
- run: python -m pip install --constraint=.github/workflows/constraints.txt poetry
- run: python -m pip install --constraint=.github/workflows/constraints.txt nox-poetry
- run: nox --python=${{ matrix.python-version }}