Skip to content

Commit a8d1fda

Browse files
authored
Merge pull request #130 from phst-randomizer/always-use-latest-python-version
2 parents c2073e9 + a1a4a43 commit a8d1fda

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.github/workflows/build-test-release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
- name: Set up Python
1212
uses: actions/setup-python@v4
1313
with:
14-
python-version: '3.10'
14+
python-version-file: '.python-version'
15+
check-latest: true
1516

1617
- name: Upgrade pip
1718
run: python -m pip install --upgrade pip
@@ -31,7 +32,8 @@ jobs:
3132
- name: Set up Python
3233
uses: actions/setup-python@v4
3334
with:
34-
python-version: '3.10'
35+
python-version-file: '.python-version'
36+
check-latest: true
3537

3638
- name: Upgrade pip
3739
run: python -m pip install --upgrade pip
@@ -130,7 +132,8 @@ jobs:
130132
- name: Set up Python
131133
uses: actions/setup-python@v4
132134
with:
133-
python-version: '3.10'
135+
python-version-file: '.python-version'
136+
check-latest: true
134137

135138
- name: Upgrade pip
136139
run: python -m pip install --upgrade pip
@@ -162,7 +165,8 @@ jobs:
162165
- name: Set up Python
163166
uses: actions/setup-python@v4
164167
with:
165-
python-version: '3.10'
168+
python-version-file: '.python-version'
169+
check-latest: true
166170

167171
- name: Upgrade pip
168172
run: python -m pip install --upgrade pip
@@ -277,7 +281,8 @@ jobs:
277281
if: "startsWith(github.ref, 'refs/tags/') || contains(steps.changed-files.outputs.modified_files, 'base/') || contains(steps.changed-files.outputs.modified_files, 'test_desmume.py')"
278282
uses: actions/setup-python@v4
279283
with:
280-
python-version: '3.10'
284+
python-version-file: '.python-version'
285+
check-latest: true
281286

282287
- name: Upgrade pip
283288
if: "startsWith(github.ref, 'refs/tags/') || contains(steps.changed-files.outputs.modified_files, 'base/') || contains(steps.changed-files.outputs.modified_files, 'test_desmume.py')"
@@ -326,7 +331,8 @@ jobs:
326331
- name: Set up Python
327332
uses: actions/setup-python@v4
328333
with:
329-
python-version: '3.10'
334+
python-version-file: '.python-version'
335+
check-latest: true
330336

331337
- name: Upgrade pip
332338
run: python -m pip install --upgrade pip

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ target/
8080
profile_default/
8181
ipython_config.py
8282

83-
# pyenv
84-
.python-version
85-
8683
# pipenv
8784
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
8885
# However, in case of collaboration, if having platform-specific dependencies or dependencies

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

0 commit comments

Comments
 (0)