Skip to content

💚 Add manual triggering for Pyright Lint #3

💚 Add manual triggering for Pyright Lint

💚 Add manual triggering for Pyright Lint #3

Workflow file for this run

name: Pyright Lint
on:
push:
branches:
- main
pull_request:
paths:
- "envs/**"
- "aioarxiv/**"
- "tests/**"
- ".github/actions/setup-python/**"
- ".github/workflows/pyright.yml"
- "pyproject.toml"
- "pdm.lock"
workflow_dispatch:
inputs:
python-version:
description: 'Python version to test'
required: false
type: choice
options:
- 'all'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
default: 'all'
debug-mode:
description: 'Enable debug mode'
required: false
type: boolean
default: false
jobs:
pyright:
name: Pyright Lint
runs-on: ubuntu-latest
strategy:

Check failure on line 39 in .github/workflows/pyright.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pyright.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
matrix:
python-version: ${{
(github.event_name == 'workflow_dispatch' && github.event.inputs.python-version != 'all')
&& [github.event.inputs.python-version]
|| ['3.9', '3.10', '3.11', '3.12']
}}
fail-fast: false
concurrency:
group: pyright-${{ github.ref }}-${{ matrix.python-version }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
with-groups: "test,dev"
no-root: "false"
- name: Run Pyright
uses: jakebailey/pyright-action@v2
with:
pylance-version: "latest-release"
use-config: true
working-directory: "."
extra-args: ${{ github.event.inputs.debug-mode == 'true' && '--warnings --verbose --level verbose' || '--warnings --verbose' }}
annotate: true