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

Commit f58d490

Browse files
committed
Use env for container python
1 parent bcd2fc9 commit f58d490

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/code.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
# Run every Monday at 8am to check latest versions of dependencies
88
- cron: "0 8 * * WED"
9+
env:
10+
# The target python version, which must match the Dockerfile version
11+
CONTAINER_PYTHON: "3.11"
912

1013
jobs:
1114
lint:
@@ -96,8 +99,7 @@ jobs:
9699
- name: Install python packages
97100
uses: ./.github/actions/install_requirements
98101
with:
99-
# Must match dockerfile
100-
python_version: "3.11"
102+
python_version: ${{env.CONTAINER_PYTHON}}
101103
requirements_file: requirements.txt
102104
install_options: dist/*.whl
103105

0 commit comments

Comments
 (0)