-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (38 loc) · 1016 Bytes
/
codecov.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
44
45
46
name: Unittest
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Coverage
strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
OS: ${{ matrix.os }}
PYTHON_VERSION: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
shell: bash
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
architecture: "x64"
cache: "poetry"
- name: Install dependencies
run: poetry install --with test --without dev
shell: bash
- name: Run Pytest
run: poetry run pytest -n auto --cov-report xml
- name: Upload report
uses: codecov/codecov-action@v3
with:
env_vars: OS,PYTHON_VERSION
files: ./coverage.xml
flags: unittests