-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (50 loc) · 1.13 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
55
---
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
name: "Python ${{ matrix.python }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
include:
- name: py39
python: 3.9
coverage: true
tox: py39
- name: py310
python: "3.10"
tox: py310
- name: py311
python: "3.11"
tox: py311
- name: py312
python: "3.12"
tox: py312
- name: py313
python: "3.13"
tox: py313
steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python }}"
- name: "Install dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
- name: "Run tests"
run: |
pip install tox
tox -e ${{ matrix.tox }}
- name: "Run coverage"
if: matrix.coverage
run: |
python -m pip install --upgrade codecov
codecov