Skip to content

Commit

Permalink
use setup-python v4 python-version-file to set python version in a si…
Browse files Browse the repository at this point in the history
…ngle place
  • Loading branch information
minrk committed Jun 9, 2022
1 parent bf59d04 commit 73609ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ jobs:
with:
fetch-depth: 0

- name: "Stage 0: Setup Python 3.8"
- name: "Stage 0: Setup Python"
uses: actions/setup-python@v4
id: setup-python
with:
python-version: "3.8"
python-version-file: ".python-version"

# Action Repo: https://github.com/actions/cache
- name: "Stage 0: Cache pip dependencies"
Expand Down Expand Up @@ -221,11 +221,11 @@ jobs:
with:
fetch-depth: 0

- name: "Stage 0: Setup Python 3.8"
- name: "Stage 0: Setup Python"
uses: actions/setup-python@v4
id: setup-python
with:
python-version: "3.8"
python-version-file: ".python-version"

# Action Repo: https://github.com/actions/cache
- name: "Stage 0: Cache pip dependencies"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-helm-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: ".python-version"

- run: helm dependency update ./mybinder

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: ".python-version"

- run: pip install yamllint

Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10

0 comments on commit 73609ef

Please sign in to comment.