lib.itmens/.github/workflows/check.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2023-10-22 18:02:15 -04:00
name: code check
2023-01-11 19:17:38 -05:00
on: [push, pull_request]
jobs:
2024-06-05 21:53:02 -04:00
doc:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
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 mkdocs-material
mkdocs build -s -d /tmp/neodb-docs
2023-01-11 19:17:38 -05:00
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:
- 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
strategy:
matrix:
2024-06-01 10:24:17 -04:00
python-version: ['3.12']
2023-01-11 19:17:38 -05:00
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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
run: |
2023-08-11 01:43:19 -04:00
python -m pyright