Skip to content

Commit

Permalink
Add simple option to tox.ini to fix PyPi build (#5612)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Feb 7, 2023
1 parent c8744d6 commit 349d80a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: env setup
run: |
conda activate test-environment
doit develop_install $CHANS_DEV -o flakes
doit develop_install $CHANS_DEV
pip uninstall -y holoviews
doit pip_on_conda
- name: doit env_capture
Expand All @@ -93,7 +93,7 @@ jobs:
- name: pip build
run: |
conda activate test-environment
doit ecosystem=pip package_build --test-group=flakes
doit ecosystem=pip package_build --test-group=simple
- name: pip upload
if: github.event_name == 'push'
run: |
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

[tox]
# python version test group extra envs extra commands
envlist = {py37,py38,py39,py310,py311}-{unit,examples,all_recommended}-{default}-{dev,pkg}
envlist = {py37,py38,py39,py310,py311}-{unit,examples,all_recommended,simple}-{default}-{dev,pkg}

[_simple]
description = Install holoviews without any optional dependencies
deps = .
commands = python -c "import holoviews as hv; print(hv.__version__)"

[_unit_core]
description = Run unit tests with coverage but no optional test dependency
Expand Down Expand Up @@ -47,6 +52,7 @@ commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
unit_core: {[_unit_core]commands}
unit_gpu: {[_unit_gpu]commands}
simple: {[_simple]commands}
examples: {[_examples]commands}
all_recommended: {[_all_recommended]commands}

Expand Down

0 comments on commit 349d80a

Please sign in to comment.