Skip to content

Update workflows to use coverage and docs #23

Update workflows to use coverage and docs

Update workflows to use coverage and docs #23

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
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 QExPy and dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt --upgrade
pip install -r requirements-dev.txt --upgrade
pip install .
- name: Run unit tests
run: |
python -m pytest --cov-report xml:coverage.xml
coverage:
runs-on: ubuntu-latest
steps:
- uses: Queens-Physics/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}