Add action for validation and move pyright from pre-commit #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: continuous-integration | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- 'main' | |
env: | |
POETRY_CACHE_DIR: ~/.cache/pypoetry | |
PYTHON_VERSION: "3.11" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python ${{ env.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: poetry build | |
- name: run ruff | |
run: poetry run ruff check --output-format=github | |
- name: Run format | |
run: poetry run ruff format --check | |
- name: Run pyright | |
run: poetry run pyright |