Skip to content

Merge pull request #79 from rl-institut/production #38

Merge pull request #79 from rl-institut/production

Merge pull request #79 from rl-institut/production #38

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut
# SPDX-License-Identifier: MIT
name: codecov
on:
push:
branches: [ production, develop ]
jobs:
test:
name: Run coverage test and create codecov
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install pytest pytest-cov
- name: Run coverage test
run: pytest --cov --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}