Skip to content
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

Python 3.12 #320

Merged
merged 1 commit into from
Sep 23, 2024
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
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: 3.9
python-version: 3.12

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -28,7 +28,7 @@ jobs:

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down Expand Up @@ -67,12 +67,12 @@ jobs:
matrix:
broker: [memory, redis, rabbitmq]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: 3.9
python-version: 3.12

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -83,7 +83,7 @@ jobs:

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11.9
3.12.5
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build
FROM python:3.11-slim-bookworm as builder
FROM python:3.12-slim-bookworm as builder

ENV PYTHONUNBUFFERED=1 \
POETRY_NO_INTERACTION=1 \
Expand All @@ -19,7 +19,7 @@ RUN apt-get update && \
rm -rf $POETRY_CACHE_DIR

# Stage 2: Runtime environment
FROM python:3.11-slim-bookworm
FROM python:3.12-slim-bookworm

ENV PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/app/.venv \
Expand Down
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ tasks:
cmds:
- docker build . -t danihodovic/celery-exporter

trivy-scan:
desc: Scans the docker image for vulnerabilities
cmds:
- trivy image --severity CRITICAL,HIGH --ignore-unfixed danihodovic/celery-exporter:latest

build-binary:
desc: Creates a binary
cmds:
Expand Down
Loading