Skip to content

Commit 523cd94

Browse files
Merge pull request #21 from estebanzimanyi/ci/run-without-a-warning-of-its-own
Run the workflow without a warning of its own
2 parents 458139a + ff9d3d8 commit 523cd94

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

‎.github/workflows/python.yml‎

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ jobs:
1010
name: Lint (ruff)
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
13+
# git names the branch a repository it initialises starts on, so the checkout
14+
# prints no hint about an unset default.
15+
- name: Name git's default branch
16+
run: git config --global init.defaultBranch main
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-python@v6
1519
with:
1620
python-version: "3.11"
1721
- name: Install ruff
@@ -24,8 +28,12 @@ jobs:
2428
name: The generated table is what the catalog declares
2529
runs-on: ubuntu-latest
2630
steps:
27-
- uses: actions/checkout@v4
28-
- uses: actions/setup-python@v5
31+
# git names the branch a repository it initialises starts on, so the checkout
32+
# prints no hint about an unset default.
33+
- name: Name git's default branch
34+
run: git config --global init.defaultBranch main
35+
- uses: actions/checkout@v5
36+
- uses: actions/setup-python@v6
2937
with:
3038
python-version: "3.11"
3139

@@ -61,8 +69,12 @@ jobs:
6169
name: Import smoke test
6270
runs-on: ubuntu-latest
6371
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions/setup-python@v5
72+
# git names the branch a repository it initialises starts on, so the checkout
73+
# prints no hint about an unset default.
74+
- name: Name git's default branch
75+
run: git config --global init.defaultBranch main
76+
- uses: actions/checkout@v5
77+
- uses: actions/setup-python@v6
6678
with:
6779
python-version: "3.11"
6880
- name: Install dependencies
@@ -81,8 +93,12 @@ jobs:
8193
name: Unit tests (PyMEOS-free)
8294
runs-on: ubuntu-latest
8395
steps:
84-
- uses: actions/checkout@v4
85-
- uses: actions/setup-python@v5
96+
# git names the branch a repository it initialises starts on, so the checkout
97+
# prints no hint about an unset default.
98+
- name: Name git's default branch
99+
run: git config --global init.defaultBranch main
100+
- uses: actions/checkout@v5
101+
- uses: actions/setup-python@v6
86102
with:
87103
python-version: "3.11"
88104
- name: Install test dependencies

0 commit comments

Comments
 (0)