Skip to content

Merge pull request #97 from MicheleDelliVeneri/qodana/quick-fixes-27f… #20

Merge pull request #97 from MicheleDelliVeneri/qodana/quick-fixes-27f…

Merge pull request #97 from MicheleDelliVeneri/qodana/quick-fixes-27f… #20

Workflow file for this run

name: Python Tests with Coverage
on:
pull_request:
push:
branches: # Specify your branches here
- development
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with coverage
run: pytest --cov=app --cov-report=xml --cov-report=term-missing --cov-config=.coveragerc tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage.xml
flags: unittests # optional
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true # optional (default = fals
- name: Upload tests
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
verbose: true