chore(ci): use Python 3.13 in CI #421

Merged
luketainton merged 3 commits from chore/ci-to-313 into main 2024-11-28 22:59:59 +01:00
4 changed files with 11 additions and 1 deletions

View File

@ -13,6 +13,8 @@ on:
jobs:
ci:
uses: luketainton/gha-workflows/.github/workflows/ci-python-poetry-with-docker.yml@main
with:
python-version: "3.13"
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

View File

@ -7,6 +7,8 @@ on:
jobs:
test:
uses: luketainton/gha-workflows/.github/workflows/ci-python-poetry-with-docker.yml@main
with:
python-version: "3.13"
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

View File

@ -3,9 +3,11 @@ LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/webexmemebot"
USER root
ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11"
ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13"
WORKDIR /run
COPY imp.py /run/imp.py
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
pip install -U pip poetry

4
imp.py Normal file
View File

@ -0,0 +1,4 @@
"""Compatibility module that imports all symbols from the importlib module.
and exposes them as imp."""
from importlib import *