-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (41 loc) · 1011 Bytes
/
Copy pathtox_check.yaml
File metadata and controls
42 lines (41 loc) · 1011 Bytes
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
40
41
42
name: tox_check
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
test:
name: tox test with ${{ matrix.env }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
env:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.env }}
- name: Run image
uses: abatilo/actions-poetry@v4
with:
poetry-version: "main"
- name: Install tox
run: poetry add --group=dev tox
- name: Select Python version
run: poetry env use ${{ matrix.env }}
- name: Install packages
run: poetry install
- name: Run test suite
run: poetry run tox run
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.env }}