Skip to content

Commit

Permalink
Update to current version of meta/config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed May 20, 2021
1 parent 6750282 commit 0a88f38
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -4,14 +4,17 @@ name: tests

on:
push:
branches: [ master ]
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:
build:
strategy:
# We want to see all failures:
fail-fast: false
matrix:
config:
# [Python version, tox env]
Expand All @@ -31,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2.1.4
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Expand Up @@ -10,16 +10,20 @@
.installed.cfg
.mr.developer.cfg
.tox/
.vscode/
__pycache__/
bin/
build/
coverage.xml
develop-eggs/
develop/
dist/
docs/_build
eggs/
htmlcov/
etc/
lib/
lib64
log/
parts/
pyvenv.cfg
var/
8 changes: 7 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 = "4e9825189b9b8d18f28e7dbc63373d4baea08602"
commit-id = "d4e8550e4a37df10866d376fceac4e91689df8c5"

[python]
with-pypy = true
Expand All @@ -16,5 +16,11 @@ fail-under = 87

[manifest]
additional-rules = [
"recursive-include src *.rst",
"recursive-include src *.txt",
"recursive-include src *.xml",
"recursive-include src *.zcml",
]

[tox]
use-flake8 = true
3 changes: 1 addition & 2 deletions MANIFEST.in
Expand Up @@ -5,9 +5,8 @@ include *.txt
include buildout.cfg
include tox.ini

recursive-include src *.pt
recursive-include src *.py
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.zcml
recursive-include src *.xml
recursive-include src *.zcml
10 changes: 7 additions & 3 deletions tox.ini
@@ -1,6 +1,7 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
[tox]
minversion = 3.18
envlist =
lint
py27
Expand All @@ -18,7 +19,7 @@ usedevelop = true
deps =
zope.testrunner
commands =
zope-testrunner --test-path=src []
zope-testrunner --test-path=src {posargs:-vc}
extras =
test

Expand All @@ -36,12 +37,15 @@ commands =

[testenv:coverage]
basepython = python3
allowlist_externals =
mkdir
deps =
coverage
coverage-python-version
zope.testrunner
commands =
coverage run -m zope.testrunner --test-path=src []
mkdir -p {toxinidir}/parts/htmlcov
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage html
coverage report -m --fail-under=87

Expand All @@ -62,4 +66,4 @@ exclude_lines =
raise AssertionError

[coverage:html]
directory = htmlcov
directory = parts/htmlcov

0 comments on commit 0a88f38

Please sign in to comment.