-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from rafsaf/release-6.0
Release 6.0
- Loading branch information
Showing
85 changed files
with
3,942 additions
and
3,156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SECURITY__JWT_SECRET_KEY=DVnFmhwvjEhJZpuhndxjhlezxQPJmBIIkMDEmFREWQADPcUnrG | ||
SECURITY__BACKEND_CORS_ORIGINS=["http://localhost:3000","http://localhost:8001"] | ||
SECURITY__ALLOWED_HOSTS=["localhost", "127.0.0.1"] | ||
|
||
DATABASE__HOSTNAME=localhost | ||
DATABASE__USERNAME=rDGJeEDqAz | ||
DATABASE__PASSWORD=XsPQhCoEfOQZueDjsILetLDUvbvSxAMnrVtgVZpmdcSssUgbvs | ||
DATABASE__PORT=5455 | ||
DATABASE__DB=default_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
open-pull-requests-limit: 5 | ||
allow: | ||
- dependency-type: "all" | ||
groups: | ||
all-dependencies: | ||
patterns: | ||
- "*" | ||
exclude-patterns: | ||
- "pytest-asyncio" | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: docker | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: dev-build | ||
on: | ||
workflow_run: | ||
workflows: ["tests"] | ||
branches: [main] | ||
types: | ||
- completed | ||
|
||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Docker image tag" | ||
required: true | ||
default: "latest" | ||
|
||
env: | ||
IMAGE_TAG: ${{ github.event.inputs.tag || 'latest' }} | ||
|
||
jobs: | ||
dev_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- name: Build and push image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: Dockerfile | ||
push: true | ||
tags: rafsaf/minimal-fastapi-postgres-template:${{ env.IMAGE_TAG }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: type-check | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
tags-ignore: | ||
- "*.*" | ||
|
||
jobs: | ||
type_check: | ||
strategy: | ||
matrix: | ||
check: ["ruff check", "mypy --check", "ruff format --check"] | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12.2" | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: false | ||
virtualenvs-path: /opt/venv | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: /opt/venv | ||
key: venv-${{ runner.os }}-python-3.12.2-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Install dependencies and actiavte virtualenv | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
poetry install --no-interaction --no-root | ||
- name: Run ${{ matrix.check }} | ||
run: | | ||
poetry run ${{ matrix.check }} . |
Oops, something went wrong.