mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
37 lines
748 B
YAML
37 lines
748 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
name: lint ${{ matrix.python-version }}
|
|
strategy:
|
|
matrix:
|
|
python-version: [ '3.10', '3.11', '3.12' ]
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
run: uv python install ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd backend
|
|
uv sync --only-group lint
|
|
|
|
- name: Run lint
|
|
run: |
|
|
cd backend
|
|
source .venv/bin/activate
|
|
chmod 755 scripts/lint.sh
|
|
./scripts/lint.sh
|