-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (34 loc) · 813 Bytes
/
main.yml
File metadata and controls
37 lines (34 loc) · 813 Bytes
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
name: Tests and checks
on: push
permissions:
contents: read
jobs:
check:
name: Test python${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e py${{ matrix.python }}
- name: Run linters
run: tox -e pre-commit
- name: Run type checking
run: tox -e mypy