Skip to content

Merge pull request #61 from philip-ndikum/pre-commit-ci-update-config #121

Merge pull request #61 from philip-ndikum/pre-commit-ci-update-config

Merge pull request #61 from philip-ndikum/pre-commit-ci-update-config #121

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
tests:
name: ${{ matrix.os_name }} / Python ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
include:
- os: ubuntu-latest
os_name: Ubuntu
- os: windows-latest
os_name: Windows
- os: macos-latest
os_name: macOS
runs-on: ${{ matrix.os }}
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 Hatch
id: hatch
shell: bash
run: |
pip install hatch
- name: Run unit tests
run: hatch run test:unit
- name: Run integration tests
run: hatch run test:integration --suppress-no-test-exit-code # Suppress the exit code of the integration tests until integration tests are added
- name: Run notebook tests
run: hatch run test:notebook
- name: Coveralls
# We upload only coverage for ubuntu and python 3.11. Uploading coverage for all matrix.os and
# matrix.python-version complicates the workflow too much for little to no gain
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: coverallsapp/github-action@v2