Skip to content

Merge pull request #11 from stfc/improve_documentation #54

Merge pull request #11 from stfc/improve_documentation

Merge pull request #11 from stfc/improve_documentation #54

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- 'main'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.x"]
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: run tests using pytest
run: |
cd $GITHUB_WORKSPACE && pytest --cov --cov-report xml:coverage.xml
- name: Submit Coverage
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}