Skip to content

Commit

Permalink
GH Actions workaround for Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Jul 4, 2024
1 parent d1bd4f7 commit 90b526c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,19 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
if: ${{ matrix.python-version != '2.7' }}
if: ${{ matrix.python-version != '2.7' && matrix.python-version != '3.5' }}

# Workaround for https://github.com/actions/setup-python/issues/866
- name: Set up Python 3.5 (Workaround)
uses: actions/setup-python@v5
with:
python-version: 3.5
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
if: ${{ matrix.python-version == '3.5' }}

- name: Install tox
run: pip install tox
Expand Down

0 comments on commit 90b526c

Please sign in to comment.