Skip to content

Commit

Permalink
Feat/pytest-action (#14)
Browse files Browse the repository at this point in the history
* chore: poetry lock

* chore: pytest-html package

* feat: python tests & html report

* added python versions and coverage action

* changed to test only 3.8 for now

* adjusted cov

* use prebuilt pytest

* switch parameter pipenv

* revert, use Cobertura report

* remove coverage comment

* dont skip covered tests

* remove upload artifact step
  • Loading branch information
Fovty authored May 14, 2024
1 parent 609e5b2 commit 019fade
Show file tree
Hide file tree
Showing 3 changed files with 509 additions and 396 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python Tests

on:
push:

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
Loading

0 comments on commit 019fade

Please sign in to comment.