-
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4
with:
python-version: '3.10'
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@c4cf8a4f03f0ac8585acb7c1b7ce3460ec15782f # v4