Static tests #423
This file contains hidden or 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: Static tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| - '*-release' | |
| schedule: | |
| - cron: '30 0 * * *' | |
| jobs: | |
| typos: | |
| name: Typos | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out LORIS-MRI | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run Typos | |
| run: | | |
| set -o pipefail | |
| typos --format=json | test/typos_to_github.sh | |
| ruff: | |
| name: Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out LORIS-MRI | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run Ruff | |
| run: ruff check --output-format=github | |
| pyright-strict: | |
| name: Pyright strict | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out LORIS-MRI | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run Pyright | |
| run: | | |
| set -o pipefail | |
| pyright --outputjson | test/pyright_to_github.sh | |
| pyrigh-global: | |
| name: Pyright global | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out LORIS-MRI | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run Pyright | |
| run: | | |
| set -o pipefail | |
| pyright --project test --outputjson | test/pyright_to_github.sh | |
| pytest: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out LORIS-MRI | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python | |
| - name: Run Pytest | |
| run: pytest python/tests/unit |