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 May 31, 2024
1 parent 0cca66f commit 91e3999
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 @@ -67,10 +67,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 91e3999

Please sign in to comment.