-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update supported Python versions; use native ns packages.
- Loading branch information
Showing
14 changed files
with
351 additions
and
175 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,8 +1,25 @@ | ||
[run] | ||
source = nti.traversal | ||
source_pkgs = nti.traversal | ||
relative_files = True | ||
|
||
|
||
[report] | ||
# Coverage is run on Linux under cPython 2 and 3, | ||
# exclude branches that are windows, pypy | ||
# specific | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
raise AssertionError | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
if PYPY: | ||
if sys.platform == 'win32': | ||
if mswindows: | ||
if is_windows: | ||
fail_under = 99.0 | ||
precision = 2 | ||
|
||
# Local Variables: | ||
# mode: conf | ||
# End: |
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,13 @@ | ||
# Keep GitHub Actions up to date with GitHub's Dependabot... | ||
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" # Group all Actions updates into a single larger pull request | ||
schedule: | ||
interval: monthly |
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,62 @@ | ||
name: tests | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHONHASHSEED: 1042466059 | ||
ZOPE_INTERFACE_STRICT_IRO: 1 | ||
|
||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "pypy-3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
extras: | ||
- "[test,docs]" | ||
# include: | ||
# - python-version: "3.13" | ||
# extras: "[test,docs,gevent,pyramid]" | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
cache-dependency-path: 'setup.py' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip setuptools wheel | ||
python -m pip install -U coverage | ||
python -m pip install -v -U -e ".${{ matrix.extras }}" | ||
- name: Test | ||
run: | | ||
python -m 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 | ||
coverage combine || true | ||
coverage report -i || true | ||
- name: Lint | ||
if: matrix.python-version == '3.12' | ||
run: | | ||
python -m pip install -U pylint | ||
pylint nti.site | ||
- name: Submit to Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel: true | ||
|
||
coveralls_finish: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel-finished: true |
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
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,5 @@ | ||
[build-system] | ||
requires = [ | ||
"wheel", | ||
"setuptools", | ||
] |
Oops, something went wrong.