-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Python 3.10 and 3.11
- Loading branch information
Showing
13 changed files
with
413 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,65 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
name: tests | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHONHASHSEED: 1042466059 | ||
ZOPE_INTERFACE_STRICT_IRO: 1 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 12 * * 0' # run once a week on Sunday | ||
# Allow to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
build: | ||
strategy: | ||
# We want to see all failures: | ||
fail-fast: false | ||
matrix: | ||
python-version: [2.7, pypy2, pypy3, 3.6, 3.7, 3.8, 3.9] | ||
os: | ||
- ["ubuntu", "ubuntu-20.04"] | ||
config: | ||
# [Python version, tox env] | ||
- ["3.9", "lint"] | ||
- ["2.7", "py27"] | ||
- ["3.6", "py36"] | ||
- ["3.7", "py37"] | ||
- ["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: ubuntu-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.python-version }} | ||
python-version: ${{ matrix.config[0] }} | ||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.*') }} | ||
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.config[0] }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip setuptools wheel | ||
python -m pip install -U coverage | ||
python -m pip install -U -e ".[test,docs]" | ||
- name: Lint | ||
run: | | ||
python -m pip install -U pylint | ||
pylint nti.transactions | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test | ||
run: tox -e ${{ matrix.config[1] }} | ||
- name: Coverage | ||
if: matrix.config[1] == 'coverage' | ||
run: | | ||
coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress | ||
coverage run -a -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctests | ||
- name: Report Coverage | ||
run: | | ||
coverage combine || true | ||
coverage report -i | ||
- name: Submit to Coveralls | ||
# This is a container action, which only runs on Linux. | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel: true | ||
|
||
coveralls_finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel-finished: true | ||
pip install coveralls coverage-python-version | ||
coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Some things can only be configured on the RTD dashboard. | ||
# Those that we may have changed from the default include: | ||
|
||
# Analytics code: | ||
# Show Version Warning: False | ||
# Single Version: True | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
builder: html | ||
configuration: docs/conf.py | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Set the version of Python and requirements required to build your | ||
# docs | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.