Polish off some small things #352
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
# This action is based on Github's default starter workflow for Python at | |
# https://github.com/actions/starter-workflows/blob/master/ci/python-package.yml | |
# (C) Github, MIT License | |
name: Python package | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
include: | |
- os: windows-latest | |
python-version: "3.11" | |
- os: macos-latest | |
python-version: "3.11" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[test] | |
- name: Lint with PyLint | |
run: | | |
pylint ibridges | |
- name: Check types with MyPy | |
run: | | |
mypy ibridges | |
- name: Check if documentation builds. | |
run: | | |
cd docs; make html SPHINXOPTS="--keep-going" | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pytest tests |