-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (46 loc) · 1.53 KB
/
test_all_oses.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Run tests on all operating systems
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
UV_SYSTEM_PYTHON: 1
jobs:
testing:
name: Testing (${{ matrix.python_version.tox }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python_version:
- { setup: '3.9', tox: 'py39' }
- { setup: '3.10', tox: 'py310' }
- { setup: '3.11', tox: 'py311' }
- { setup: '3.12', tox: 'py312' }
- { setup: 'pypy3.8', tox: 'pypy38' }
- { setup: 'pypy3.9', tox: 'pypy39' }
- { setup: 'pypy3.10', tox: 'pypy310' }
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python 3.11
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: ${{ matrix.python_version.setup }}
- name: Install Just
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6
with:
just-version: 1.14.0
- name: Setup environment to run tox
env:
UV_SYSTEM_PYTHON: 1
run:
just setup-runner
- name: Run tests
run:
just inv test-on-ci
--py-target ${{ matrix.python_version.tox }}
--cov-output .coverage.${{ matrix.python_version.tox }}