-
-
Notifications
You must be signed in to change notification settings - Fork 21
44 lines (36 loc) · 941 Bytes
/
tests.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
39
40
41
42
43
44
name: Tests
on:
pull_request:
push:
branches:
- "main"
tags:
- "*"
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
name: pytest-${{ matrix.python-version }}
steps:
- name: Check out
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up python environment
uses: actions/setup-python@v4
with:
cache: 'poetry'
python-version: ${{ matrix.python-version }}
- run: poetry install --no-root --with=tests --sync
- run: poetry run pytest --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
name: coverage-${{ matrix.python-version }}