-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (34 loc) · 931 Bytes
/
Copy pathcoverage.yml
File metadata and controls
35 lines (34 loc) · 931 Bytes
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
name: Fetch and upload coverage
permissions:
id-token: write
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
if: contains(fromJSON('["cfengine","mendersoftware","NorthernTechHQ"]'), github.repository_owner)
runs-on: ubuntu-latest
name: setup-python
env:
PYTHON_VERSION: "3.10"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install uv
uv lock --check
uv sync
- name: Run tests and collect coverage
run: make coverage
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v7
with:
use_oidc: true
env:
fail_ci_if_error: true