Skip to content

Commit

Permalink
github: Add workflow to run lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Sep 29, 2024
1 parent 8f2c51d commit 66daeb0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: CI Tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"

- name: Install Python dependencies
run: poetry install --no-root --with=dev

- name: Run linters
run: poetry run ./scripts/lint

- name: Ensure pyproject.toml and poetry.lock are in sync
run: |
poetry check
- name: Ensure models and migrations are in sync
run: |
poetry run alembic upgrade head
poetry run alembic check

0 comments on commit 66daeb0

Please sign in to comment.