-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (36 loc) · 948 Bytes
/
test.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
name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python_version: ["3.10"]
include:
- os: ubuntu
python_version: "3.9"
- os: ubuntu
python_version: "3.8"
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade nox
shell: bash
- name: Run `nox -s tests`
run: python -m nox -s tests-${{ matrix.python_version }}
shell: bash