This repository was archived by the owner on Jul 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.52 KB
/
Copy pathtests.yaml
File metadata and controls
52 lines (46 loc) · 1.52 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
name: Tests
on: [ push, pull_request ]
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
# Checks
- { name: 'Lint', tox: lint }
- { name: 'mypy', tox: mypy }
- { name: 'twine check', tox: twine }
# Tests
- { name: 'Python 3.7', tox: py37, python: '3.7' }
- { name: 'Python 3.8', tox: py38, python: '3.8' }
- { name: 'Python 3.9', tox: py39, python: '3.9' }
- { name: 'Python 3.10', tox: py310, python: '3.10' }
- { name: 'Python 3.11', tox: py311, python: '3.11' }
- { name: 'Python 3.12', tox: py312, python: '3.12' }
- { name: 'Windows, Python 3.9',
os: 'windows-latest',
tox: py39, python: '3.9' }
# Docs
- { name: 'Docs', tox: docs }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python || '3.8' }}
- name: Install dependencies
run: |
python -m pip install -U pip
pip install -U wheel
pip install -U setuptools
pip install tox==3
- name: Run tox -e ${{ matrix.tox }}
run: tox -e ${{ matrix.tox }}
- name: Install and run codecov (py38 only)
if: ${{ matrix.tox == 'py38' }}
run: |
pip install codecov
codecov