Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: test Python 3.1, 3.2 and 3.4 #91

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 27 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:
# CPython 3.13 final is scheduled for October 2024:
# https://peps.python.org/pep-0719/
- "3.13"
# Python 2.7 was removed from GHA setup-python in June 2023:
# https://github.com/actions/setup-python/issues/672

# PyPy versions:
# - https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md
Expand Down Expand Up @@ -64,23 +62,45 @@ jobs:
- os: macos-latest
python: 3.12

# Ubuntu: test deadsnakes Python not supported by GHA python-versions
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Setup Python
# https://github.com/actions/setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install setuptools
run: python -m pip install setuptools
- name: Display the Python version
run: python -VV
- name: Run tests
run: python runtests.py --current --verbose

# Test old unsupported Python versions
# Don't install setuptools: use built-in distutils.
test_old:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
python: 3.5
- os: ubuntu-20.04
python: 3.6
- os: ubuntu-18.04
python: 3.4
- os: ubuntu-18.04
python: 3.3

steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Setup Python
# https://github.com/actions/setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install setuptools
run: python -m pip install setuptools
- name: Display the Python version
run: python -VV
- name: Run tests
Expand Down
Loading