Skip to content

Auto-update examples #675

Auto-update examples

Auto-update examples #675

Workflow file for this run

name: Pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main, dev ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov
pip install .
- name: Verify test data files
run: |
ls -la tests/resources/maxquant/PXD003133-22min/
echo "Checking if test data files exist..."
if [ ! -f "tests/resources/maxquant/PXD003133-22min/proteinGroups.txt.gz" ]; then
echo "Warning: Test data files are missing. Tests may be skipped."
else
echo "Test data files found."
fi
- name: Test with pytest
run: |
pytest tests/ -v --cov=pmultiqc
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false