-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 965 Bytes
/
code-cov.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
name: CodeCov
on: [pull_request]
jobs:
code-coverage:
name: Create code coverage report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install poetry
run: |
curl -O -sSL https://install.python-poetry.org/install-poetry.py
python install-poetry.py -y --version 1.3.2
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV
rm install-poetry.py
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "poetry"
- name: Install dependencies and project
run: |
poetry env use python3.10
poetry install --with test
- name: Run tests and collect coverage
run: poetry run pytest --cov src/sk_transformers --cov-report term-missing --cov-report xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3