Skip to content

[pre-commit.ci] pre-commit autoupdate #70

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #70

Workflow file for this run

name: lint
on:
push:
branches:
- master
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
setup.py
- name: Install dependencies
run: python -m pip install -r requirements-dev.txt
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
pyright:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
setup.py
# all extras are installed to test
- name: Install dependencies
run: python -m pip install -r requirements-dev.txt .[docs,menus]
- name: Set up pyright
run: echo "PYRIGHT_VERSION=$(python -c 'import pyright; print(pyright.__pyright_version__)')" >> $GITHUB_ENV
- name: Run pyright (Linux)
uses: jakebailey/pyright-action@v1.2.0
with:
version: ${{ env.PYRIGHT_VERSION }}
python-version: ${{ matrix.python-version }}
python-platform: Linux
# only add comments for 3.8
no-comments: ${{ matrix.python-version != '3.8' }}
warnings: true
- name: Run pyright (Windows)
uses: jakebailey/pyright-action@v1.0.3
# run anyway
if: success() || failure()
with:
version: ${{ env.PYRIGHT_VERSION }}
python-version: ${{ matrix.python-version }}
python-platform: Windows
# only add comments for one platform
no-comments: true
warnings: true
slotscheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
cache-dependency-path: |
requirements-dev.txt
requirements.txt
setup.py
- name: Install dependencies
run: python -m pip install -r requirements.txt -r requirements-dev.txt
- name: Run slotscheck
run: task slotscheck