-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (31 loc) · 953 Bytes
/
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
name: ci
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04 # Ubuntu 20.04 LTS ships with the Python version we're currently targeting
steps:
- uses: actions/checkout@v4
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Setup development environment
run: make dev-install
- name: Run tests
run: make test
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Setup development environment
run: make dev-install
- name: Check formatting (use `make reformat` on error)
run: make formatting
- name: Run linter (try `make fix` on error)
run: make lint
- name: Check types
run: make typecheck