Skip to content

Commit

Permalink
Merge pull request #491 from alliance-genome/dependabot-pin-py-version
Browse files Browse the repository at this point in the history
Improved python version management
  • Loading branch information
mluypaert authored Jan 28, 2025
2 parents 134e7f9 + fb8af36 commit 08a8ce8
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 34 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/PR-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ jobs:
shell: bash
working-directory: ./api/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
api/
- uses: actions/setup-python@v5
with:
python-version-file: "api/pyproject.toml"
- name: Update lock files
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-deps-lock-updates') }}
shell: bash
Expand Down Expand Up @@ -126,16 +126,16 @@ jobs:
shell: bash
working-directory: ./shared_aws/py_package/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
shared_aws/py_package/
- uses: actions/setup-python@v5
with:
python-version-file: "shared_aws/py_package/pyproject.toml"
- name: Update lock files
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-deps-lock-updates') }}
shell: bash
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/py_package/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/py_package/pyproject.toml"
- name: Build package
run: |
make clean build
Expand All @@ -239,16 +239,16 @@ jobs:
shell: bash
working-directory: ./shared_aws/aws_infra/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
shared_aws/aws_infra/
- uses: actions/setup-python@v5
with:
python-version-file: "shared_aws/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/aws_infra/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down Expand Up @@ -334,16 +334,16 @@ jobs:
shell: bash
working-directory: ./pipeline/aws_infra/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
pipeline/aws_infra/
- uses: actions/setup-python@v5
with:
python-version-file: "pipeline/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -373,16 +373,16 @@ jobs:
shell: bash
working-directory: ./api/aws_infra/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
api/aws_infra/
- uses: actions/setup-python@v5
with:
python-version-file: "api/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -412,16 +412,16 @@ jobs:
shell: bash
working-directory: ./webui/aws_infra/
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
sparse-checkout: |
Makefile
webui/aws_infra/
- uses: actions/setup-python@v5
with:
python-version-file: "webui/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -694,7 +694,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "pipeline/aws_infra/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down Expand Up @@ -744,7 +744,7 @@ jobs:
path: api/tests
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version-file: "api/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down Expand Up @@ -855,7 +855,7 @@ jobs:
docker load --input /tmp/pavi_alignment_docker_image.tar
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version-file: "api/pyproject.toml"
- name: Run unit and integration tests
run: |
make run-tests
Expand Down Expand Up @@ -903,7 +903,7 @@ jobs:
docker load --input /tmp/pavi_api_docker_image.tar
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version-file: "api/pyproject.toml"
# This step will configure environment variables to be used by all steps
# involving AWS interaction further down
- name: AWS credentials configuration
Expand Down Expand Up @@ -951,7 +951,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "api/aws_infra/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down Expand Up @@ -1006,7 +1006,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "webui/aws_infra/pyproject.toml"
- name: Code typing test
run: |
make run-type-checks
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/py_package/pyproject.toml"
- name: Build the pavi_shared_aws package
working-directory: ./shared_aws/py_package
run: |
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "pipeline/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "api/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "webui/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -520,7 +520,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version-file: "shared_aws/aws_infra/pyproject.toml"
- name: Download shared AWS package
uses: actions/download-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions api/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
1 change: 1 addition & 0 deletions api/aws_infra/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
1 change: 1 addition & 0 deletions pipeline/aws_infra/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
2 changes: 1 addition & 1 deletion pipeline/seq_retrieval/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.12
1 change: 1 addition & 0 deletions shared_aws/aws_infra/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
1 change: 1 addition & 0 deletions shared_aws/py_package/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
1 change: 1 addition & 0 deletions webui/aws_infra/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12

0 comments on commit 08a8ce8

Please sign in to comment.