Skip to content

Commit 39a24f2

Browse files
committed
Set up Python after checkout; minor YAML formatting
Move the "Set up Python" step in reusable-check-python-package-versions.yaml to run after actions/checkout so the .python-version file is available to actions/setup-python and the subsequent "uv sync" can see repository packages. Also add a small whitespace/formatting tweak in test-schema.yaml (blank line between checkout and Go setup) for readability. Signed-off-by: John McCall <john@overturemaps.org>
1 parent f5fc07f commit 39a24f2

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/reusable-check-python-package-versions.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ jobs:
6666
with:
6767
version: latest
6868

69-
- name: Set up Python
70-
uses: actions/setup-python@v6
71-
with:
72-
python-version-file: .python-version
73-
7469
- name: Check out code before change
7570
uses: actions/checkout@v6
7671
with:
7772
ref: ${{ inputs.before_commit }}
7873

74+
- name: Set up Python
75+
uses: actions/setup-python@v6
76+
with:
77+
python-version-file: .python-version
78+
7979
- name: Sync code before change to make packages visible to Python
8080
run: uv sync --all-packages
8181

.github/workflows/test-schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v6
18+
1819
- name: Set up Go
1920
uses: actions/setup-go@v6
2021
with:

0 commit comments

Comments
 (0)