-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.16 KB
/
pr-main.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
on: [push, pull_request]
jobs:
tests:
strategy:
fail-fast: false
matrix:
include:
- { python: "3.11", os: ubuntu-latest, check: "tests-3.11" }
- { python: "3.12", os: ubuntu-latest, check: "tests-3.12" }
- { python: "3.11", os: ubuntu-latest, check: "lint" }
- { python: "3.11", os: ubuntu-latest, check: "docs" }
- { python: "3.11", os: ubuntu-latest, check: "mypy" }
- { python: "3.11", os: ubuntu-latest, check: "build" }
name: ${{ matrix.check }} on Python ${{ matrix.python }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- name: Check out the repository
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python }}
uses: actions/[email protected]
with:
python-version: "${{ matrix.python }}"
- name: Upgrade pip
run: |
pip install --upgrade pip
pip --version
- name: Install Nox
run: |
pip install nox
nox --version
- name: Run Nox
run: |
nox --force-color --python=${{ matrix.python }} --session=${{ matrix.check }}