Skip to content

Commit

Permalink
Configuring for buildout-recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Sep 1, 2021
1 parent ec17e1c commit f1b2908
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -28,7 +28,7 @@ max_line_length = off
# 4 space indentation
indent_size = 4

[*.{yml,zpt,pt,dtml}]
[*.{yml,zpt,pt,dtml,zcml}]
# 2 space indentation
indent_size = 2

Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -4,15 +4,20 @@ 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:
os:
- ubuntu
config:
# [Python version, tox env]
- ["3.8", "lint"]
Expand All @@ -26,7 +31,7 @@ jobs:
- ["pypy3", "pypy3"]
- ["3.8", "coverage"]

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,9 +1,11 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/buildout-recipe
*.dll
*.egg-info/
*.profraw
*.pyc
*.pyo
*.so
.coverage
.coverage.*
.eggs/
Expand Down
14 changes: 11 additions & 3 deletions .meta.toml
Expand Up @@ -2,14 +2,22 @@
# https://github.com/zopefoundation/meta/tree/master/config/buildout-recipe
[meta]
template = "buildout-recipe"
commit-id = "519ffffe1b360ede58b32a375b5f8b26059d8016"
commit-id = "07ca2c5c2ba0c3cb369f3ef5c0de595df1246225"

[python]
with-appveyor = false
with-pypy = true
with-legacy-python = true
with-docs = false
with-sphinx-doctests = false
with-windows = false
with-future-python = false

[coverage]
fail-under = 95

[tox]
use-flake8 = true

[manifest]
additional-rules = [
"recursive-include src *.rst",
]
3 changes: 0 additions & 3 deletions MANIFEST.in
Expand Up @@ -6,8 +6,5 @@ include buildout.cfg
include tox.ini
include .coveragerc

recursive-include src *.pt
recursive-include src *.py
recursive-include src *.rst
recursive-include src *.txt
recursive-include src *.zcml
5 changes: 2 additions & 3 deletions tox.ini
Expand Up @@ -17,7 +17,6 @@ envlist =
[testenv]
usedevelop = true
deps =
zope.testrunner
commands =
zope-testrunner --test-path=src {posargs:-vc}
extras =
Expand All @@ -30,6 +29,7 @@ deps =
flake8
check-manifest
check-python-versions
wheel
commands =
flake8 src setup.py
check-manifest
Expand All @@ -44,11 +44,10 @@ setenv =
deps =
coverage
coverage-python-version
zope.testrunner
commands =
mkdir -p {toxinidir}/parts/htmlcov
coverage erase
coverage run -m zope.testrunner --test-path=src []
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
coverage combine
coverage html
coverage report -m --fail-under=95

0 comments on commit f1b2908

Please sign in to comment.