Skip to content

CI Tests

CI Tests #59

Workflow file for this run

name: CI Tests
on:
push:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'requirements.txt'
- '.github/workflows/run-tests.yml'
pull_request:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'requirements.txt'
- '.github/workflows/run-tests.yml'
schedule:
- cron: "0 3 1 * *" # monthly test run (1st of month at 3 AM UTC)
workflow_dispatch: # manual trigger
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run pytest
env:
PYTHONPATH: ${{ github.workspace }}
run: |
echo "Python path: $PYTHONPATH"
pytest -q --disable-warnings --maxfail=1
- name: Upload test artifacts (on failure)
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-failures-${{ github.run_number }}
path: .
retention-days: 5