Skip to content

Commit

Permalink
Merge pull request #18 from miketheman/patch-1
Browse files Browse the repository at this point in the history
test: Update GitHub Actions and Python versions
  • Loading branch information
mmerickel authored Aug 29, 2024
2 parents 4746270 + 272678e commit 5f04215
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 30 deletions.
36 changes: 12 additions & 24 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,47 @@ jobs:
strategy:
matrix:
py:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.8"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
architecture:
- x64
- x86
exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
architecture: x86
- os: "macos-latest"
architecture: x86
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
- "macos-13"
name: "Python: ${{ matrix.py }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
coverage:
runs-on: ubuntu-latest
name: Validate coverage
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7"
architecture: x64
python-version: "3.8"

- run: pip install tox
- run: tox -e py37,coverage
- run: tox -e py38,coverage
lint:
runs-on: ubuntu-latest
name: Lint the package
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.7"
architecture: x64
python-version: "3.8"
- run: pip install tox
- run: tox -e lint
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Changes
unreleased
----------

- Drop support for Python 3.4, 3.5, 3.6.
- Drop support for Python 3.4, 3.5, 3.6, 3.7.

- Add support for Python 3.10, 3.11.
- Add support for Python 3.10, 3.11, 3.12.

2.2 (2019-04-22)
----------------
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ classifiers =
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

Expand All @@ -39,7 +39,7 @@ install_requires =
wired >= 0.2
zope.interface
include_package_data = True
python_requires = >=3.7
python_requires = >=3.8

[options.packages.find]
where = src
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
lint,
py37,py38,py39,py310,py311,pypy3,
py38,py39,py310,py311,py312,pypy3,
coverage

[testenv]
Expand Down Expand Up @@ -68,4 +68,4 @@ deps =
build
check-manifest
readme_renderer
twine
twine

0 comments on commit 5f04215

Please sign in to comment.