-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 995 Bytes
/
coverage.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
name: Coverage
on:
pull_request:
types: [synchronize, opened, edited]
push:
branches: [main]
jobs:
skip:
name: Skip Duplicate Actions
uses: ixm-one/common/.github/workflows/actions.skip.yml@main
coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: '3.12'
cache: poetry
- name: Install Tools
run: poetry install --with=dev
- name: Run Tests
run: >-
poetry run pytest
--cov=${{github.workspace}}/src
--cov-branch
-vv
#--numprocesses=auto
- name: Upload Code Coverage
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4