mirror of
https://github.com/Eledio/superfaktura-client.git
synced 2025-11-01 08:28:25 +01:00
30 lines
828 B
YAML
30 lines
828 B
YAML
name: PyTest
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements_dev.txt
|
|
- name: Test with pytest
|
|
run: |
|
|
pip install pytest pytest-cov
|
|
pytest test/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
|
|
- name: Upload pytest test results
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pytest-results
|
|
path: junit/test-results.xml
|
|
# Use always() to always run this step to publish test results when there are test failures
|
|
if: ${{ always() }}
|