Skip to content

Merge pull request #9 from int-brain-lab/dependabot/pip/sphinx-lt-9.0.0 #108

Merge pull request #9 from int-brain-lab/dependabot/pip/sphinx-lt-9.0.0

Merge pull request #9 from int-brain-lab/dependabot/pip/sphinx-lt-9.0.0 #108

Workflow file for this run

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