-
-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (37 loc) · 1.04 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
# Explicitly also install tox-gh-actions to prevent tests from using system interpreter
run: pip install '.[test]' tox-gh-actions
- name: Run tox
run: tox
- name: Generate coverage report
run: coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: pip install '.[dev]'
- name: Run mypy
run: mypy