Skip to content

Commit

Permalink
Fix GHA: ubuntu-latest no longer contains Python 2.7 up to 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 14, 2022
1 parent d0a1ff6 commit 5bb30e1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu
- ["ubuntu", "ubuntu-20.04"]
config:
# [Python version, tox env]
- ["3.9", "lint"]
Expand All @@ -28,22 +28,23 @@ jobs:
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["pypy-2.7", "pypy"]
- ["pypy-3.7", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]

runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os[1] }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
Expand Down
3 changes: 2 additions & 1 deletion .meta.toml
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta]
template = "pure-python"
commit-id = "d5b6c610d0ec7f0b8f6bbba49353eb89288f62b1"
commit-id = "200573eb414d2228d463da3de7d71a6d6335a704"

[python]
with-pypy = true
Expand All @@ -11,6 +11,7 @@ with-docs = true
with-sphinx-doctests = true
with-windows = false
with-future-python = false
with-macos = false

[tox]
use-flake8 = true
Expand Down
6 changes: 3 additions & 3 deletions CHANGES.rst
Expand Up @@ -2,10 +2,10 @@
Changes
=========

4.4.2 (unreleased)
==================
4.5 (unreleased)
================

- Nothing changed yet.
- Add support for Python 3.11.


4.4.1 (2022-09-01)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -36,7 +36,7 @@ def read(*rnames):
]

setup(name='zope.catalog',
version='4.4.2.dev0',
version='4.5.dev0',
author='Zope Corporation and Contributors',
author_email='zope-dev@zope.org',
description='Cataloging and Indexing Framework for the Zope Toolkit',
Expand All @@ -61,6 +61,7 @@ def read(*rnames):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Expand Up @@ -11,6 +11,7 @@ envlist =
py38
py39
py310
py311
pypy
pypy3
docs
Expand Down Expand Up @@ -43,6 +44,7 @@ deps =

[testenv:isort-apply]
basepython = python3
skip_install = true
commands_pre =
deps =
isort
Expand All @@ -68,8 +70,8 @@ commands =
mkdir -p {toxinidir}/parts/htmlcov
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
coverage html
coverage report -m --fail-under=99.5
coverage html --ignore-errors
coverage report --ignore-errors --show-missing --fail-under=99.5

[coverage:run]
branch = True
Expand Down

0 comments on commit 5bb30e1

Please sign in to comment.