Merge pull request #9 from int-brain-lab/dependabot/pip/sphinx-lt-9.0.0 #108
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: linting and unit-tests | |
on: [push, workflow_dispatch] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
tests: | |
name: python ${{ matrix.python-version }} on ${{ matrix.os }} | |
needs: ruff | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
- name: "Update pip" | |
run: pip install --upgrade pip | |
- name: Install requirements | |
run: pip install -e .[DEV] | |
- name: "Static type checking: mypy" | |
run: mypy | |
- name: iblrig unit tests | |
run: pytest | |
- name: coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
flag-name: ${{ matrix.python-version }}, ${{ matrix.os }} | |
parallel: true | |
file: coverage.xml | |
finish: | |
needs: tests | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true |