-
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·46 lines (38 loc) · 1.14 KB
/
tests.yml
File metadata and controls
executable file
·46 lines (38 loc) · 1.14 KB
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: Run Pytest
on:
push:
branches:
- "**" # including all branches before excluding master
- "!master"
- "!main"
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install poetry
- name: Install poetry dependencies
run: |
python -m poetry update --with test
- name: Run tests
run: |
python -m poetry run coverage run --omit=./tests/* -m pytest -v
- name: Generate Coverage Report
run: |
python -m poetry run coverage report
python -m poetry run coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ddc/pythonLogs