-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 892 Bytes
/
python.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
name: Python tests
on:
push:
pull_request:
branches: [main]
jobs:
Test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9]
include:
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: 3.8
- os: ubuntu-latest
python-version: 3.7
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: python3 -m pip install nox
- name: Run nox for ${{ matrix.python-version }}
working-directory: ./python
run: nox -s test-${{ matrix.python-version }}