-
-
Notifications
You must be signed in to change notification settings - Fork 627
40 lines (40 loc) · 1.12 KB
/
tests.yml
File metadata and controls
40 lines (40 loc) · 1.12 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
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel tox
- run: tox -eflake8
- run: tox -edocs
tests:
name: tests
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', 'pypy3.11']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip wheel tox
- run: tox
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel tox
- run: tox
- uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}