Skip to content

Commit

Permalink
Fix running Python 3.4 and 3.5 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Nov 19, 2023
1 parent 55eef25 commit 9ae3871
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,42 @@ jobs:
- name: Run the tests
run: python setup.py test -q

build_py34:
runs-on: ubuntu-20.04
container: python:3.4
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Show Python version
run: python -V

- name: Install dependencies
run: $PIP install setuptools

- name: Run the tests
run: python setup.py test -q

build_py35:
runs-on: ubuntu-20.04
container: python:3.5
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Show Python version
run: python -V

- name: Install dependencies
run: $PIP install setuptools

- name: Run the tests
run: python setup.py test -q

build_py3x:
strategy:
fail-fast: false
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if PY3:
if py_version < (3, 4):
raise RuntimeError('On Python 3, Py65 requires Python 3.6 or later')
raise RuntimeError('On Python 3, Py65 requires Python 3.4 or later')
else:
if py_version < (2, 7):
raise RuntimeError('On Python 2, Py65 requires Python 2.7 or later')
Expand All @@ -27,6 +27,8 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit 9ae3871

Please sign in to comment.