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:
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
|
|
|
python-version: ['3.11']
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
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:
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
|
|
|
python-version: ['3.11']
|
2023-01-11 19:17:38 -05:00
|
|
|
steps:
|
2023-08-10 15:07:57 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: pip
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install -r requirements-dev.txt
|
2023-08-11 01:43:19 -04:00
|
|
|
python -m pip install -r requirements.txt
|
|
|
|
- name: Run pyright
|
2023-08-10 15:07:57 -04:00
|
|
|
run: |
|
2023-08-11 01:43:19 -04:00
|
|
|
python -m pyright
|