Skip to content

Merge pull request #8 from int-brain-lab/develop #72

Merge pull request #8 from int-brain-lab/develop

Merge pull request #8 from int-brain-lab/develop #72

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
Ruff:
name: Ruff & mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
name: ruff check
with:
args: 'check --output-format=github'
- uses: chartboost/ruff-action@v1
name: ruff format
with:
args: 'format --check'
- name: mypy
run: |
pip install mypy
mypy
Testing:
needs: [Ruff]
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pdm sync -dG test
- name: Run Tests
run: pdm run -v pytest tests
- name: coveralls.io
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.python-version }}, ${{ matrix.os }}
parallel: true
file: coverage.xml
compare-ref: iblrigv8
Finish:
needs: [Testing]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true