Skip to content

Commit 567f89b

Browse files
committed
Fix Python 3.5 tests on CI
1 parent 9ee5fee commit 567f89b

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/main.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,41 @@ jobs:
4444
- name: Run the end-to-end tests
4545
run: TOXENV=py34 END_TO_END=1 tox
4646

47+
tests_py35:
48+
runs-on: ubuntu-20.04
49+
strategy:
50+
fail-fast: false
51+
52+
steps:
53+
- uses: actions/checkout@v3
54+
55+
- name: Work around pip SSL cert verify error
56+
run: sudo $PIP config set global.trusted-host 'pypi.python.org pypi.org files.pythonhosted.org'
57+
58+
- name: Set up Python 3.5
59+
uses: actions/setup-python@v4
60+
with:
61+
python-version: 3.5
62+
63+
- name: Install dependencies
64+
run: $PIP install virtualenv tox
65+
66+
- name: Set variable for TOXENV based on Python version
67+
id: toxenv
68+
run: python -c 'import sys; print("TOXENV=py%d%d" % (sys.version_info.major, sys.version_info.minor))' | tee -a $GITHUB_OUTPUT
69+
70+
- name: Run the unit tests
71+
run: TOXENV=${{steps.toxenv.outputs.TOXENV}} tox
72+
73+
- name: Run the end-to-end tests
74+
run: TOXENV=${{steps.toxenv.outputs.TOXENV}} END_TO_END=1 tox
75+
4776
tests_py3x:
4877
runs-on: ubuntu-20.04
4978
strategy:
5079
fail-fast: false
5180
matrix:
52-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
81+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
5382

5483
steps:
5584
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)