Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,32 @@ on:
jobs:
cache:
uses: milsman2/python-app-template/.github/workflows/cache-uv-build.yaml@main

with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
lint:
uses: milsman2/python-app-template/.github/workflows/ruff.yaml@main
needs: cache

with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
test:
needs: [lint, cache]
uses: milsman2/python-app-template/.github/workflows/pytest.yaml@main

with:
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
docker-build-and-image-scan:
if: github.event_name == 'push'
needs: test
uses: milsman2/python-app-template/.github/workflows/docker-build-and-scan.yaml@main
with:
DOCKER_PATH_CONTEXT: .
DOCKER_BUILD_DOCKERFILE: ./Dockerfile
DOCKER_TAGS: ${{ github.repository }}:${{ github.sha }}
DOCKER_TAGS: ${{ vars.DOCKER_USERNAME }}/${{ vars.DOCKER_REPOSITORY }}:${{ github.sha }}
DOCKER_LOAD_BOOL: false
DOCKER_PUSH_BOOL: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
secrets: inherit

release:
Expand All @@ -42,3 +49,10 @@ jobs:
permissions:
contents: write
secrets: inherit
with:
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_REPOSITORY: ${{ vars.DOCKER_REPOSITORY }}
UV_VERSION: ${{ vars.UV_VERSION }}
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
DOCKER_PATH_CONTEXT: .
DOCKER_BUILD_DOCKERFILE: ./Dockerfile
2 changes: 1 addition & 1 deletion src/python_response_time/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Settings(BaseSettings):
] = 10
CONCURRENCY: Annotated[
int, Field(gt=0, le=10_000, description="Concurrent requests")
] = 2
] = 1
TIMEOUT: Annotated[
float, Field(gt=0, le=120, description="Request timeout in seconds")
] = 10.0
Expand Down
Loading