Skip to content

Commit

Permalink
clone workflow from py-kube-downscaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed May 14, 2024
1 parent 22fed3f commit 055fd91
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@ name: Python Tests

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.8
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run pytest and generate HTML report
run: poetry run pytest --html=report.html --self-contained-html
- name: Upload HTML report
uses: actions/upload-artifact@v4
- 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:
name: pytest-report
path: report.html
path: coverage.xml
minimum_coverage: 70
skip_covered: false

0 comments on commit 055fd91

Please sign in to comment.