Skip to content

Commit a0b8a36

Browse files
.github/workflows/main.yml: Py2.7: Use a wrapper for setup-python
Because of the announcement of removal of Python 2.7 for setup-python in actions/setup-python#672, use a wrapper for setup-python which can build missing Python versions. Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 2f6fdd8 commit a0b8a36

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ jobs:
3939
with:
4040
fetch-depth: 0 # Needed by diff-cover to get the changed lines: origin/master..HEAD
4141
- name: Set up Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@v4
42+
# uses: actions/setup-python@v4 due to https://github.com/actions/setup-python/issues/672:
43+
# https://github.com/MatteoH2O1999/setup-python
44+
# This action tries to build from source all Python versions that actions/setup-python
45+
# does not support. It also allows to cache built versions so that after the first run,
46+
# installation time is really low. Hope it works also with 20.04, else it needs more changes:
47+
uses: MatteoH2O1999/setup-python@v1
4348
with:
4449
python-version: ${{ matrix.python-version }}
50+
allow-build: info
51+
cache-build: true
52+
cache: pip
4553

4654
- name: Run of tox on ubuntu-latest
4755
if: ${{ startsWith(matrix.python-version, '3.') && matrix.python-version != 3.6 }}

0 commit comments

Comments
 (0)