Skip to content

Feature/add python tests #3

Feature/add python tests

Feature/add python tests #3

Workflow file for this run

name: Python Tests
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pytest and pytest-cov
run: |
pip install pytest pytest-cov
- name: Run pytest with coverage
run: |
COVERAGE_FILE=tests/python/.coverage pytest --cov=shared/python --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov tests/python/
- name: Upload coverage HTML report
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: tests/python/htmlcov/