Unittests for 2b9963f71d77de5723b885f7e57f2c79db75aedc #398
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unittests | |
run-name: Unittests for ${{ github.sha }} | |
on: [push] | |
jobs: | |
tests: | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.9', '3.10', '3.11', '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: Display Python version for testing purposes | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Python dependencies | |
uses: py-actions/py-dependency-install@v4 | |
with: | |
path: "requirements.txt" | |
- name: Run unittests with pytest | |
run: python -m pytest -v | |
working-directory: . | |
- name: Install nbmake | |
run: python -m pip install nbmake | |
- name: pytest notebooks | |
run: python -m pytest --nbmake Readme.ipynb | |
working-directory: . |