Skip to content

Merge pull request #214 from SimonThalvorsen/main #3

Merge pull request #214 from SimonThalvorsen/main

Merge pull request #214 from SimonThalvorsen/main #3

Workflow file for this run

name: Fetch and upload coverage
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
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true