Skip to content

Commit

Permalink
Fix Python 3.5 tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed May 21, 2024
1 parent 9ee5fee commit 567f89b
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,41 @@ jobs:
- name: Run the end-to-end tests
run: TOXENV=py34 END_TO_END=1 tox

tests_py35:
runs-on: ubuntu-20.04
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Work around pip SSL cert verify error
run: sudo $PIP config set global.trusted-host 'pypi.python.org pypi.org files.pythonhosted.org'

- name: Set up Python 3.5
uses: actions/setup-python@v4
with:
python-version: 3.5

- name: Install dependencies
run: $PIP install virtualenv tox

- name: Set variable for TOXENV based on Python version
id: toxenv
run: python -c 'import sys; print("TOXENV=py%d%d" % (sys.version_info.major, sys.version_info.minor))' | tee -a $GITHUB_OUTPUT

- name: Run the unit tests
run: TOXENV=${{steps.toxenv.outputs.TOXENV}} tox

- name: Run the end-to-end tests
run: TOXENV=${{steps.toxenv.outputs.TOXENV}} END_TO_END=1 tox

tests_py3x:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 567f89b

Please sign in to comment.