mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-04 17:14:26 +00:00
* Optimize serialization and algorithm performance * Fix get tree data to async * Removed CPU-intensive multi-threaded execution * Update pdm pre commit to 2.18.0 * Add jwt user info cache * Update ci * Fix ci * Fix redis delete prefix * Adapt to JWT user instance * Update jwt middleware token parse
34 lines
606 B
YAML
34 lines
606 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: Setup pdm
|
|
uses: pdm-project/setup-pdm@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd backend
|
|
pdm install
|
|
|
|
- name: Run lint
|
|
run: |
|
|
cd backend
|
|
pdm lint
|