-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.06 KB
/
python-tests.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
name: Python tests
on:
push:
branches: [main]
pull_request:
# Check all PR
concurrency:
group: python-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
python-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
matrix:
include:
- os: ubuntu-20.04
python-version: "3.8"
- os: ubuntu-20.04
python-version: "3.12"
- os: macos-14
python-version: "3.12"
- os: windows-2019
python-version: "3.12"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install tests dependencies
run: |
python -m pip install --upgrade pip
# https://github.com/tox-dev/tox/issues/3238
python -m pip install tox==4.14.0
- name: run tests
run: tox