forked from mirror/Archipelago
* CI: reduce default permissions to minimum * CI: update pin actions Most of them. CodeQL and action-gh-release is untouched for now. Immutable actions and actions/* are pinned to version, other actions are pinned to hash. * CI: make use of archive: false in upload-artifact also set compression level and error behavior for scan-build upload. * CI: update codeql and enable scanning actions
36 lines
818 B
YAML
36 lines
818 B
YAML
name: type check
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**.py"
|
|
- ".github/pyright-config.json"
|
|
- ".github/workflows/strict-type-check.yml"
|
|
- "**.pyi"
|
|
push:
|
|
paths:
|
|
- "**.py"
|
|
- ".github/pyright-config.json"
|
|
- ".github/workflows/strict-type-check.yml"
|
|
- "**.pyi"
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
pyright:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6.0.2
|
|
|
|
- uses: actions/setup-python@v6.2.0
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: "Install dependencies"
|
|
run: |
|
|
python -m pip install --upgrade pip pyright==1.1.392.post0
|
|
python ModuleUpdate.py --append "WebHostLib/requirements.txt" --force --yes
|
|
|
|
- name: "pyright: strict check on specific files"
|
|
run: python .github/type_check.py
|