|
10 | 10 | name: Lint (ruff) |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | 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 |
15 | 19 | with: |
16 | 20 | python-version: "3.11" |
17 | 21 | - name: Install ruff |
|
24 | 28 | name: The generated table is what the catalog declares |
25 | 29 | runs-on: ubuntu-latest |
26 | 30 | 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 |
29 | 37 | with: |
30 | 38 | python-version: "3.11" |
31 | 39 |
|
|
61 | 69 | name: Import smoke test |
62 | 70 | runs-on: ubuntu-latest |
63 | 71 | 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 |
66 | 78 | with: |
67 | 79 | python-version: "3.11" |
68 | 80 | - name: Install dependencies |
|
81 | 93 | name: Unit tests (PyMEOS-free) |
82 | 94 | runs-on: ubuntu-latest |
83 | 95 | 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 |
86 | 102 | with: |
87 | 103 | python-version: "3.11" |
88 | 104 | - name: Install test dependencies |
|
0 commit comments