-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (35 loc) · 943 Bytes
/
ci.yaml
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
name: Python CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ 3.8, 3.9, '3.10', '3.11' ]
os: [ ubuntu-latest ]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
- name: Install project
run: just install-ci
- name: Check formatting
run: just check-fmt
- name: Lint
run: just lint
- name: Test
run: just test -vv
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
env_vars: OS,PYTHON