Skip to content

Batched

Batched #30

Workflow file for this run

name: pylint
on:
pull_request:
branches:
master
jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run : |
python -m pip install --upgrade pip
pip install pylint sqlfluff
check_store_service:
runs-on: ubuntu-latest
needs : setup
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run : |
pip install -r store-service/requirements.txt
pip install pylint sqlfluff
- name: Run pylint on store-service
run : pylint store-service/*.py store-service/*/*.py
- name: Check SQL schema in store-service
run : sqlfluff lint --dialect sqlite store-service/database/store-schema.sql
check_bank_service:
runs-on: ubuntu-latest
needs : setup
steps:
- uses: actions/checkout@v4
- name: Install dependecies
run : |
pip install -r bank-service/requirements.txt
pip install pylint sqlfluff
- name: Run pylint on bank-service
run : pylint bank-service/*.py bank-service/*/*.py
- name: Check SQL schema in bank-service
run : sqlfluff lint --dialect sqlite bank-service/database/bank-schema.sql
all_test_success:
runs-on: ubuntu-latest
needs :
- check_store_service
- check_bank_service
steps :
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}