Skip to content

LORIS-MRI tooling configuration #10

LORIS-MRI tooling configuration

LORIS-MRI tooling configuration #10

Workflow file for this run

name: Python checks
on:
- push
- pull_request
jobs:
ruff:
name: "Ruff"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out LORIS-MRI
uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Run Ruff
run: ruff check --output-format=github
pyright-strict:
name: "Pyright strict"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out LORIS-MRI
uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Run Pyright
run: |
pyright --outputjson > pyright-output.json
cat pyright-output.json \
| jq -r '.generalDiagnostics[] \
| "::error file=\(.file),line=\(.range.start.line),col=\(.range.start.character)::\(.message)"'
pyrigh-global:
name: "Pyright global"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out LORIS-MRI
uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Run Pyright
run: |
cd test
pyright --outputjson > pyright-output.json
cat pyright-output.json \
| jq -r '.generalDiagnostics[] \
| "::error file=\(.file),line=\(.range.start.line),col=\(.range.start.character)::\(.message)"'