Compare commits

...

8 Commits

Author SHA1 Message Date
762a5f3523 Merge pull request #1 from ServerCrow/renovate/configure 2024-11-24 13:51:52 +01:00
0ca067d37b Update renovate.json 2024-11-24 13:51:32 +01:00
renovate[bot]
d6d48ead0a Add renovate.json 2024-11-24 09:22:47 +00:00
eef2cc3741 fix: renamed pong package 2024-10-25 14:00:20 +02:00
93867a5382 fix: fixed pipeline versioning 2024-10-25 13:53:27 +02:00
ed7b4eb908 fix: sorted imports to trigger pipeline 2024-10-25 13:49:57 +02:00
e62eb19647 fix: Adjusted pipeline 2024-10-25 13:43:50 +02:00
73cdeec66b fix: removed unused configs 2024-10-25 13:42:24 +02:00
5 changed files with 15 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
name: Lint, Test, Tag, Build and Deploy DEV
name: Lint, Test, Tag, Build and Deploy
on:
push:
@@ -6,7 +6,6 @@ on:
- dev
- master
paths-ignore:
- "**/.github/**"
- "**/.gitignore"
- "**/.vscode/**"
- "**/README.md"
@@ -25,11 +24,11 @@ jobs:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "-l 100 --exclude '/.venv/|alembic/|/__init__.py'"
options: "-l 100 --exclude '/.venv/|/__init__.py'"
- uses: creyD/autoflake_action@master
with:
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
with:
commit_message: Adjusted files for isort & autopep
@@ -78,7 +77,7 @@ jobs:
major_pattern: "breaking:"
minor_pattern: "feat:"
enable_prerelease_mode: false
version_format: "${major}.${minor}.${patch}-rc${increment}"
version_format: "${major}.${minor}.${patch}"
- name: Create Tag
run: git tag ${{ steps.git_version.outputs.version }}
@@ -106,7 +105,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ github.ref_name }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
- name: Build and push Docker image
@@ -115,7 +114,7 @@ jobs:
context: .
file: ./Dockerfile
build-args: |
VERSION=${{ needs.tag.outputs.version }}-${{ github.ref_name }}
VERSION=${{ needs.tag.outputs.version }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

18
.vscode/launch.json vendored
View File

@@ -12,24 +12,6 @@
"env": {
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
}
},
{
"name": "Migrate",
"type": "debugpy",
"request": "launch",
"module": "alembic",
"args": ["upgrade", "head"],
"jinja": true,
"justMyCode": true
},
{
"name": "Make Migrations",
"type": "debugpy",
"request": "launch",
"module": "alembic",
"args": ["revision", "--autogenerate"],
"jinja": true,
"justMyCode": true
}
]
}

View File

@@ -1,9 +1,7 @@
import os
from fastapi import APIRouter
from fastapi import Response
from fastapi import APIRouter, FastAPI, Response
from creyPY.fastapi.app import generate_unique_id
from dotenv import load_dotenv
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
load_dotenv()

View File

@@ -1,4 +1,5 @@
from creyPY.fastapi.testing import GenericClient
from .main import app

7
renovate.json Normal file
View File

@@ -0,0 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticCommitTypeAll(feat)"
]
}