-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (56 loc) · 1.66 KB
/
Copy pathtest.yml
File metadata and controls
57 lines (56 loc) · 1.66 KB
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
name: Test Python 🐍 Versions + 3rd-party Deps
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
test:
name: Python ${{ matrix.py }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
# pip>=24.1 rejects legacy dep metadata (e.g. pytest-httpx's `pytest (<8.*,>=6.*)`)
# and backtracks through dozens of versions, stalling the matrix 30+ min.
# Seed each tox venv with the last pip that tolerates it.
VIRTUALENV_PIP: "24.0"
strategy:
fail-fast: false
matrix:
py:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
os:
- ubuntu-22.04
steps:
- name: Setup python for tox
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Install tox
run: python -m pip install tox
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Setup test suite
run: |
sudo apt-get update && sudo apt-get install -y portaudio19-dev
python_version="${{ matrix.py }}"
python_version="${python_version/./}"
tox -f "py$python_version" -vvvv --notest
- name: Run test suite
run: |
python_version="${{ matrix.py }}"
python_version="${python_version/./}"
tox -f "py$python_version" -vvvv --skip-pkg-install
env:
PYTEST_ADDOPTS: "-vv --durations=20"
CI_RUN: "yes"