Skip to content

Merge pull request #16 from caas-team/fix/permission-adjustments-pytest #43

Merge pull request #16 from caas-team/fix/permission-adjustments-pytest

Merge pull request #16 from caas-team/fix/permission-adjustments-pytest #43

Workflow file for this run

name: Python Tests
on:
push:
pull_request:
permissions:
contents: read
issues: write
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run pytest with coverage and generate report
run: poetry run pytest --cov=tests --cov-report=xml tests/
- name: Upload coverage to Cobertura
uses: 5monkeys/cobertura-action@master
with:
path: coverage.xml
minimum_coverage: 70
skip_covered: false