Duncan Tourolle 4735a78b5d
Some checks failed
Python CI / test (push) Successful in 30s
Lint / lint (push) Successful in 1m1s
Tests / test (3.10) (push) Failing after 1m7s
Tests / test (3.11) (push) Failing after 20s
Tests / test (3.9) (push) Failing after 1m5s
remove depenecy install from tests
2025-10-24 23:49:42 +02:00

37 lines
903 B
YAML

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
xvfb-run -a pytest --cov=pyPhotoAlbum --cov-report=xml --cov-report=term-missing
env:
QT_QPA_PLATFORM: offscreen
- name: Upload coverage reports
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false