Skip to content

Commit

Permalink
Add minimal test without extra deps
Browse files Browse the repository at this point in the history
To prevent issues like pallets-eco#225,
This PR add a minimal test that no extra deps are involved, it only install
the package, then try to import the extension class.

fixes pallets-eco#226
  • Loading branch information
greyli committed Dec 10, 2023
1 parent 2f8ec90 commit a2e7731
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- {name: Linux, python: '3.12', os: ubuntu-latest, tox: py312}
- {name: Windows, python: '3.12', os: windows-latest, tox: py312}
- {name: Mac, python: '3.12', os: macos-latest, tox: py312}
- {name: Minimal, python: '3.12', os: ubuntu-latest, tox: minimal}
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311}
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ envlist =
py27
py3{12,11,10,9,8,7,6}
stylecheck
minimal
skip_missing_interpreters = True

[testenv]
Expand All @@ -13,6 +14,12 @@ deps =
commands =
pytest

[testenv:minimal]
deps =
.
commands =
python -c "from flask_debugtoolbar import DebugToolbarExtension"

[testenv:stylecheck]
deps =
pycodestyle
Expand Down

0 comments on commit a2e7731

Please sign in to comment.