Skip to content

Commit

Permalink
Improved circumvention for pip cert issue on Python 3.5
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed May 18, 2024
1 parent 27394e1 commit 88a8dd4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,19 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
if: ${{ ! ( matrix.python-version == '2.7' ) }}
- name: Set up Python ${{ matrix.python-version }} (if py==3.5)
if: ${{ matrix.python-version == '3.5' }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
env:
# Workaround for cert issue on Python 3.5, see https://github.com/actions/setup-python/issues/866
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Set up Python ${{ matrix.python-version }} (if py>=3.6)
if: ${{ matrix.python-version != '2.7' && matrix.python-version != '3.5' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display initial Python packages
run: |
echo "Installed Python packages:"
Expand Down

0 comments on commit 88a8dd4

Please sign in to comment.