Skip to content

Improve basic repo architecture #11

Improve basic repo architecture

Improve basic repo architecture #11

Workflow file for this run

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