Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3977e3add9 | |||
| 143512953b | |||
|
|
e0dc1da4a1 | ||
|
|
1b766f3f22 | ||
| 762a5f3523 | |||
| 0ca067d37b | |||
|
|
d6d48ead0a | ||
| eef2cc3741 | |||
| 93867a5382 | |||
| ed7b4eb908 | |||
| e62eb19647 |
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Lint, Test, Tag, Build and Deploy DEV
|
name: Lint, Test, Tag, Build and Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,7 +6,6 @@ on:
|
|||||||
- dev
|
- dev
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**/.github/**"
|
|
||||||
- "**/.gitignore"
|
- "**/.gitignore"
|
||||||
- "**/.vscode/**"
|
- "**/.vscode/**"
|
||||||
- "**/README.md"
|
- "**/README.md"
|
||||||
@@ -25,11 +24,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: psf/black@stable
|
- uses: psf/black@stable
|
||||||
with:
|
with:
|
||||||
options: "-l 100 --exclude '/.venv/|alembic/|/__init__.py'"
|
options: "-l 100 --exclude '/.venv/|/__init__.py'"
|
||||||
- uses: creyD/autoflake_action@master
|
- uses: creyD/autoflake_action@master
|
||||||
with:
|
with:
|
||||||
no_commit: True
|
no_commit: True
|
||||||
options: --in-place --remove-all-unused-imports -r --exclude **/__init__.py,**/db/models.py,
|
options: --in-place --remove-all-unused-imports -r --exclude **/__init__.py
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Adjusted files for isort & autopep
|
commit_message: Adjusted files for isort & autopep
|
||||||
@@ -78,7 +77,7 @@ jobs:
|
|||||||
major_pattern: "breaking:"
|
major_pattern: "breaking:"
|
||||||
minor_pattern: "feat:"
|
minor_pattern: "feat:"
|
||||||
enable_prerelease_mode: false
|
enable_prerelease_mode: false
|
||||||
version_format: "${major}.${minor}.${patch}-rc${increment}"
|
version_format: "${major}.${minor}.${patch}"
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
run: git tag ${{ steps.git_version.outputs.version }}
|
run: git tag ${{ steps.git_version.outputs.version }}
|
||||||
@@ -106,7 +105,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ github.ref_name }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
@@ -115,7 +114,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ needs.tag.outputs.version }}-${{ github.ref_name }}
|
VERSION=${{ needs.tag.outputs.version }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter, FastAPI, Response
|
||||||
from fastapi import Response
|
|
||||||
from creyPY.fastapi.app import generate_unique_id
|
from creyPY.fastapi.app import generate_unique_id
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from fastapi import FastAPI
|
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from creyPY.fastapi.testing import GenericClient
|
from creyPY.fastapi.testing import GenericClient
|
||||||
|
|
||||||
from .main import app
|
from .main import app
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
7
renovate.json
Normal file
7
renovate.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended",
|
||||||
|
":semanticCommitTypeAll(feat)"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
certifi==2023.11.17 # Testing
|
certifi==2024.7.4 # Testing
|
||||||
iniconfig==2.0.0 # PyTest Testing
|
iniconfig==2.0.0 # PyTest Testing
|
||||||
packaging==23.2 # PyTest Testing
|
packaging==23.2 # PyTest Testing
|
||||||
pluggy==1.3.0 # PyTest Testing
|
pluggy==1.3.0 # PyTest Testing
|
||||||
pytest==7.4.3 # PyTest Testing
|
pytest==7.4.3 # PyTest Testing
|
||||||
|
|
||||||
click==8.1.7 # Uvicorn
|
click==8.1.7 # Uvicorn
|
||||||
httptools==0.6.1 # Uvicorn
|
httptools==0.6.4 # Uvicorn
|
||||||
pyyaml==6.0.1 # Uvicorn
|
pyyaml==6.0.1 # Uvicorn
|
||||||
uvicorn==0.27.0.post1 # Uvicorn
|
uvicorn==0.27.0.post1 # Uvicorn
|
||||||
uvloop==0.19.0 # Uvicorn
|
uvloop==0.19.0 # Uvicorn
|
||||||
|
|||||||
Reference in New Issue
Block a user