Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 0c7ea12

Browse files
committed
add python 3.11
1 parent f79bb64 commit 0c7ea12

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/code.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,32 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919

20-
# use a version of python that does not require setup.py
2120
- name: Setup python
2221
uses: actions/setup-python@v4
2322
with:
2423
python-version: "3.x"
2524

2625
- name: Lint
2726
run: |
28-
touch requirements_${{ github.job }}.txt requirements.txt
29-
pip install -r requirements.txt -r requirements_${{ github.job }}.txt -e .[dev]
27+
touch requirements-lint.txt requirements.txt
28+
pip install -r requirements.txt -r requirements-lint.txt -e .[dev]
3029
tox -e pre-commit,mypy
30+
mkdir -p lockfiles
31+
pip freeze > lockfiles/requirements-lint.txt
32+
33+
- name: Upload lockfiles
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: lockfiles
37+
path: lockfiles
3138

3239
test:
3340
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
3441
strategy:
3542
fail-fast: false
3643
matrix:
3744
os: ["ubuntu-latest"] # can add windows-latest, macos-latest
38-
python: ["3.8", "3.9", "3.10"]
45+
python: ["3.8", "3.9", "3.10", "3.11"]
3946

4047
runs-on: ${{ matrix.os }}
4148
env:
@@ -68,7 +75,7 @@ jobs:
6875
name: ${{ matrix.python }}/${{ matrix.os }}
6976
files: cov.xml
7077

71-
- name: Upload lock files
78+
- name: Upload lockfiles
7279
uses: actions/upload-artifact@v3
7380
with:
7481
name: lockfiles
@@ -92,8 +99,9 @@ jobs:
9299
# ${GITHUB_REPOSITORY##*/} is the repo name without org
93100
# Replace this with the cli command if different to the repo name
94101
- name: Test cli works in sdist installed in local python
95-
run: touch requirements.txt &&
96-
pip install -r requirements.txt dist/*.whl &&
102+
run: |
103+
touch requirements.txt
104+
pip install -r requirements.txt dist/*.whl
97105
${GITHUB_REPOSITORY##*/} --version
98106
99107
- name: Upload sdist and wheel as artifacts
@@ -159,7 +167,7 @@ jobs:
159167
mkdir -p lockfiles
160168
docker run --entrypoint pip ${{ env.IMAGE_REPOSITORY }} freeze > lockfiles/requirements.txt
161169
162-
- name: Upload requirements.txt freeze file
170+
- name: Upload lockfiles
163171
uses: actions/upload-artifact@v3
164172
with:
165173
name: lockfiles

.github/workflows/linkcheck.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Link Check
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
# Run every Monday at 8am to check URL links still resolve
67
- cron: "0 8 * * WED"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The devcontainer should use the build target and run as root with podman
44
# or docker with user namespaces.
55
#
6-
FROM python:3.10 as build
6+
FROM python:3.11 as build
77

88
# Add any system dependencies for the developer/build environment here e.g.
99
# RUN apt-get update && apt-get upgrade -y && \
@@ -23,7 +23,7 @@ ENV PATH=/venv/bin:$PATH
2323
RUN touch requirements.txt && \
2424
pip install -r requirements.txt dist/*.whl
2525

26-
FROM python:3.10-slim as runtime
26+
FROM python:3.11-slim as runtime
2727

2828
# Add apt-get system dependecies for runtime here if needed
2929

0 commit comments

Comments
 (0)