Skip to content

Commit 5311d6a

Browse files
author
Sylvain MARIE
committed
Fixed GHA for 3.5
1 parent 159d120 commit 5311d6a

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/base.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
- name: Checkout
6060
uses: actions/[email protected]
6161

62-
- name: Install python ${{ matrix.nox_session.python }} for tests
63-
# If one version fails, uncomment this one and the next step. For example here 3.13.
64-
if: ${{ ! contains(fromJson('["3.13"]'), matrix.nox_session.python ) }}
62+
# General case
63+
- name: Install python ${{ matrix.nox_session.python }} for tests (not 3.5 not 3.13)
64+
if: ${{ ! contains(fromJson('["3.5", "3.13"]'), matrix.nox_session.python ) }}
6565
uses: MatteoH2O1999/setup-python@v4 # actions/[email protected]
6666
id: set-py
6767
with:
@@ -70,6 +70,22 @@ jobs:
7070
allow-build: info
7171
cache-build: true
7272

73+
# Particular case of issue with 3.5
74+
- name: Install python ${{ matrix.nox_session.python }} for tests (3.5)
75+
if: contains(fromJson('["3.5"]'), matrix.nox_session.python )
76+
uses: MatteoH2O1999/setup-python@v4 # actions/[email protected]
77+
id: set-py
78+
with:
79+
python-version: ${{ matrix.nox_session.python }}
80+
architecture: x64
81+
allow-build: info
82+
cache-build: true
83+
env:
84+
# workaround found in https://github.com/actions/setup-python/issues/866
85+
# for issue "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:728)" on Python 3.5
86+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
87+
88+
7389
- name: Install python ${{ matrix.nox_session.python }} for tests (3.13)
7490
if: contains(fromJson('["3.13"]'), matrix.nox_session.python )
7591
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)