Skip to content

Commit aa27cb5

Browse files
committed
CI: Install GitHub Actions' Python after OS depenencies
Homebrew doesn't like it when it can't overwrite system locations of Python, so try setting up the Actions' Python after it.
1 parent acb461f commit aa27cb5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,6 @@ jobs:
115115
with:
116116
fetch-depth: 0
117117

118-
- name: Set up Python ${{ matrix.python-version }}
119-
uses: actions/setup-python@v5
120-
if: matrix.python-version != '3.13t'
121-
with:
122-
python-version: ${{ matrix.python-version }}
123-
allow-prereleases: true
124-
125-
- name: Set up Python ${{ matrix.python-version }}
126-
uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
127-
if: matrix.python-version == '3.13t'
128-
with:
129-
python-version: '3.13'
130-
nogil: true
131-
132118
- name: Install OS dependencies
133119
run: |
134120
case "${{ runner.os }}" in
@@ -194,6 +180,20 @@ jobs:
194180
;;
195181
esac
196182
183+
- name: Set up Python ${{ matrix.python-version }}
184+
uses: actions/setup-python@v5
185+
if: matrix.python-version != '3.13t'
186+
with:
187+
python-version: ${{ matrix.python-version }}
188+
allow-prereleases: true
189+
190+
- name: Set up Python ${{ matrix.python-version }}
191+
uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
192+
if: matrix.python-version == '3.13t'
193+
with:
194+
python-version: '3.13'
195+
nogil: true
196+
197197
- name: Cache pip
198198
uses: actions/cache@v4
199199
if: startsWith(runner.os, 'Linux')

0 commit comments

Comments
 (0)