Skip to content

Commit

Permalink
Update docker build and workflows to Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMaul committed May 15, 2024
1 parent c025ac1 commit 84dfff4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
ref: ${{github.event.pull_request.head.sha}}
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- run: python -m pip install towncrier
- run: "scripts-dev/check_newsfragment.sh ${{ github.event.number }}"
6 changes: 3 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- run: python -m pip install tox
- run: tox -e check_codestyle

Expand All @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- run: python -m pip install tox
- run: tox -e check_types

Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- run: python -m pip install -e .
- run: python -m twisted.trial tests

Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
###
### Stage 0: builder
###
FROM python:3.10-slim as builder
FROM python:3.11-slim as builder

# Install git; Sygnal uses it to obtain the package version from the state of the
# git repository.
Expand All @@ -25,7 +25,7 @@ RUN pip install --prefix="/install" --no-warn-script-location /sygnal
### Stage 1: runtime
###

FROM python:3.10-slim
FROM python:3.11-slim
COPY --from=builder /install /usr/local

EXPOSE 5000/tcp
Expand Down

0 comments on commit 84dfff4

Please sign in to comment.