Skip to content

Commit

Permalink
Add 'z3c.macro' and 'z3c.pt' test suites to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Jan 29, 2024
1 parent 6322d8c commit 39d721b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
- ["pypy-3.9", "pypy3"]
- ["3.9", "docs"]
- ["3.9", "coverage"]
- ["3.12", "mypy"]

- ["3.12", "mypy"]
- ["3.11", "z3c.macro"]
- ["3.11", "z3c.pt"]
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] }}
Expand Down
25 changes: 25 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ envlist =
docs
coverage
mypy
z3c.macro
z3c.pt

[testenv]
usedevelop = true
deps =
Expand Down Expand Up @@ -110,3 +113,25 @@ commands =
mypy -p chameleon --python-version 3.10
mypy -p chameleon --python-version 3.11
mypy -p chameleon --python-version 3.12

[testenv:z3c.macro]
basepython = python3
skip_install = true
commands_pre =
pip install -e.
usedevelop = true
deps =
z3c.macro[test]
commands =
zope-testrunner --path .tox/z3c.macro/lib/python3.11/site-packages --path . -s z3c.macro {posargs:-vc}

[testenv:z3c.pt]
basepython = python3
skip_install = true
commands_pre =
pip install -e.
usedevelop = true
deps =
z3c.pt[test]
commands =
zope-testrunner --path .tox/z3c.pt/lib/python3.11/site-packages --path . -s z3c.pt {posargs:-vc}

0 comments on commit 39d721b

Please sign in to comment.