Automatic Greeting Feature #80
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: Intelligence Service QA | |
on: | |
pull_request: | |
paths: | |
- "server/intelligence-service/**" | |
push: | |
paths: | |
- "server/intelligence-service/**" | |
branches: [develop] | |
jobs: | |
lint: | |
name: Code Quality Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
virtualenvs-path: .venv | |
installer-parallel: true | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: Install Python dependencies | |
working-directory: server/intelligence-service | |
run: poetry lock --no-update && poetry install --no-interaction --no-root | |
- name: Check formatting with Black | |
working-directory: ./server/intelligence-service | |
run: poetry run black --check . |