Improve basic repo architecture #11
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: Backend QA | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
paths-filter: | |
runs-on: ubuntu-22.04 | |
outputs: | |
backend: ${{ steps.filter.outputs.backend }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
backend: | |
- 'backend/**' | |
check-qa: | |
runs-on: ubuntu-22.04 | |
needs: paths-filter | |
# run only if 'backend' files were changed | |
if: needs.paths-filter.outputs.backend == 'true' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version-file: backend/pyproject.toml | |
architecture: x64 | |
- name: Install dependencies (and project) | |
working-directory: backend | |
run: | | |
pip install -U pip | |
pip install -e .[lint,scripts,test,check] | |
- name: Check black formatting | |
working-directory: backend | |
run: inv lint-black | |
- name: Check ruff | |
working-directory: backend | |
run: inv lint-ruff | |
- name: Check pyright | |
working-directory: backend | |
run: inv check-pyright |