Skip to content

Commit

Permalink
workflow: tox improvements
Browse files Browse the repository at this point in the history
- Run test environments in parallel
- Build wheel packages rather than sdists for test environments
- Skip the install step when running `tox -e pkg`
  • Loading branch information
alcarney committed Jul 12, 2023
1 parent 0499edf commit 4c3801e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lsp-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
cd lib/esbonio
version=$(echo ${{ matrix.python-version }} | tr -d .)
python -m tox -e `tox -l | grep $version | tr '\n' ','`
python -m tox run-parallel --parallel-no-spinner -e `tox -l | grep $version | tr '\n' ','`
shell: bash
name: Run Tests
Expand Down
4 changes: 3 additions & 1 deletion lib/esbonio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ skip_missing_interpreters = true
envlist = py{38,39,310,311}-sphinx{5,6,7}
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
sphinx5: sphinx>=5,<6
Expand All @@ -137,7 +139,7 @@ commands =
[testenv:pkg]
deps =
build
usedevelop = True
skip_install = True
commands =
python -m build
"""

0 comments on commit 4c3801e

Please sign in to comment.