Skip to content

Commit 57cf711

Browse files
committed
Show Python version info on GitHub Actions
1 parent 44cc683 commit 57cf711

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 10
2626
steps:
27+
- name: Setup Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: 3.13
31+
- name: Print Python version
32+
run: python -V
2733
- name: Checkout
2834
uses: actions/checkout@v4
2935
# The full PTtools repository is needed for the example scripts
@@ -36,10 +42,6 @@ jobs:
3642
# which prevents the example scripts from being imported.
3743
ref: da50329beba788803ba6bee2b497a89a98bea53d
3844
path: pttools
39-
- name: Setup Python
40-
uses: actions/setup-python@v5
41-
with:
42-
python-version: 3.13
4345
- name: Load pip cache
4446
uses: actions/cache@v4
4547
with:
@@ -58,7 +60,7 @@ jobs:
5860
run: python3 -c "from pttools.bubble.fluid_reference import ref; ref()"
5961
env:
6062
PYTHONPATH: ${{ github.workspace }}/pttools
61-
- name: Run tests
63+
- name: Generate figures
6264
run: python3 ./msc2-python/figures.py
6365
env:
6466
PYTHONPATH: ${{ github.workspace }}/pttools:${{ github.workspace }}/msc2-python

0 commit comments

Comments
 (0)