Skip to content

Commit

Permalink
feat: add quality test workflow
Browse files Browse the repository at this point in the history
Co-authored-by: Ghaith Kdimati <[email protected]>
  • Loading branch information
Ofahmy143 and Ghaithq committed Sep 19, 2024
1 parent 981a88d commit 76b820d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
on:
pull_request:
branches: [main]

jobs:
quality-test:
name: Test/Quality
uses: DelfinaCare/fastapi-rls/.github/workflows/quality.yml@dev
28 changes: 28 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code Quality Test

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1

static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
# Add poetry to PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: poetry install
- name: Run Mypy
run: poetry run mypy src --explicit-package-bases

0 comments on commit 76b820d

Please sign in to comment.