-
Notifications
You must be signed in to change notification settings - Fork 4
[DOCS, FIX] edit pre-commit hooks, update FastAPI-fastkit guides #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
a3da3ac
ffea4bb
842227b
9180200
df75477
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,85 @@ | ||||||||||||||||||||||
| name: Template PR Inspection | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| on: | ||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||
| paths: | ||||||||||||||||||||||
| - 'src/fastapi_fastkit/fastapi_project_template/**' | ||||||||||||||||||||||
| types: | ||||||||||||||||||||||
| - opened | ||||||||||||||||||||||
| - synchronize | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||
| pull-requests: write | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||
| inspect-changed-templates: | ||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: Checkout code | ||||||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 0 # Fetch all history for git diff | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Set up Python | ||||||||||||||||||||||
| uses: actions/setup-python@v4 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| python-version: "3.12" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Setup PDM | ||||||||||||||||||||||
| uses: pdm-project/setup-pdm@v4 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Install dependencies | ||||||||||||||||||||||
| run: pdm install -G dev | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Install UV package manager | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||||||||||||||||||||||
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Verify UV installation | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| export PATH="$HOME/.cargo/bin:$PATH" | ||||||||||||||||||||||
| uv --version | ||||||||||||||||||||||
| which uv | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| - name: Set up Docker Compose | ||||||||||||||||||||||
| run: | | ||||||||||||||||||||||
| if ! command -v docker-compose &> /dev/null; then | ||||||||||||||||||||||
| echo "Installing Docker Compose..." | ||||||||||||||||||||||
| sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||||||||||||||||||||||
| sudo chmod +x /usr/local/bin/docker-compose | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| docker --version | ||||||||||||||||||||||
| docker-compose --version | ||||||||||||||||||||||
|
||||||||||||||||||||||
| if ! command -v docker-compose &> /dev/null; then | |
| echo "Installing Docker Compose..." | |
| sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| fi | |
| docker --version | |
| docker-compose --version | |
| docker --version | |
| docker compose version |
Uh oh!
There was an error while loading. Please reload this page.