-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (50 loc) · 1.35 KB
/
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
47
48
49
50
51
52
53
54
name: tests
on: ['push', 'pull_request', 'workflow_call']
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04']
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.13'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'
tox-env: ['essential']
include:
- os: macos-latest
python-version: '3.12'
tox-env: essential
- os: windows-latest
python-version: '3.11'
tox-env: essential
- os: ubuntu-latest
python-version: '3.10'
tox-env: extended
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install --quiet --upgrade tox>=4.5.1
- name: Run essential tests
if: ${{ matrix.tox-env != 'extended' }}
run: |
tox run -e ${{ matrix.tox-env }}
- name: Run linters and coverage
if: ${{ matrix.tox-env == 'extended' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install --quiet --upgrade coveralls
tox run -e ${{ matrix.tox-env }}
coveralls --service=github