Skip to content

Commit

Permalink
passed env var to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed Jul 16, 2024
1 parent 5e58a04 commit 52c9a0f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ legacy_tox_ini = """
[tox]
env_list = lint, type, py{310,311,312}
minversion = 4.15.0
passenv = GITHUB_WORKSPACE
[testenv]
description = run the tests with pytest
passenv =
GITHUB_*
CI
package = wheel
wheel_build_env = .pkg
allowlist_externals =
Expand All @@ -149,6 +151,9 @@ legacy_tox_ini = """
[testenv:coverage]
description = run terst coverage
passenv =
GITHUB_*
CI
deps =
.[test]
commands =
Expand All @@ -157,13 +162,19 @@ legacy_tox_ini = """
[testenv:format]
description = install ruff and format the project code
passenv =
GITHUB_*
CI
deps =
ruff
commands =
ruff format
[testenv:lint]
description = run linters
passenv =
GITHUB_*
CI
skip_install = true
deps =
ruff
Expand All @@ -172,6 +183,9 @@ legacy_tox_ini = """
[testenv:type]
description = run type checks
passenv =
GITHUB_*
CI
deps =
mypy>=1.1
commands =
Expand Down

0 comments on commit 52c9a0f

Please sign in to comment.