Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'z3c.macro' and 'z3c.pt' test suites to tox #416

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {env_site_packages_dir} --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 {env_site_packages_dir} --path . -s z3c.pt {posargs:-vc}
Loading