2023-10-22 18:02:15 -04:00
|
|
|
name: code check
|
2023-01-11 19:17:38 -05:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2023-08-11 01:43:19 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-06-01 10:24:17 -04:00
|
|
|
python-version: ['3.12']
|
2023-08-11 01:43:19 -04:00
|
|
|
steps:
|
2024-06-16 09:06:57 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-11 01:43:19 -04:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
2024-06-16 09:06:57 -04:00
|
|
|
uses: actions/setup-python@v5
|
2023-08-11 01:43:19 -04:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: pip
|
|
|
|
- name: Run pre-commit
|
|
|
|
run: |
|
|
|
|
python -m pip install pre_commit
|
|
|
|
SKIP=pyright python -m pre_commit run -a --show-diff-on-failure
|
|
|
|
type-checker:
|
2023-01-11 19:17:38 -05:00
|
|
|
runs-on: ubuntu-latest
|
2023-08-10 15:12:30 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-06-01 10:24:17 -04:00
|
|
|
python-version: ['3.12']
|
2023-01-11 19:17:38 -05:00
|
|
|
steps:
|
2024-06-16 09:06:57 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-20 14:15:10 -05:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2023-08-10 15:07:57 -04:00
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
2024-06-16 09:06:57 -04:00
|
|
|
uses: actions/setup-python@v5
|
2023-08-10 15:07:57 -04:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: pip
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-06-04 23:29:55 -04:00
|
|
|
python -m pip install -r requirements-dev.lock
|
|
|
|
python -m pip install -r requirements.lock
|
2023-08-11 01:43:19 -04:00
|
|
|
- name: Run pyright
|
2023-08-10 15:07:57 -04:00
|
|
|
run: |
|
2023-08-11 01:43:19 -04:00
|
|
|
python -m pyright
|