Skip to content

Commit

Permalink
tox: use TOX_TESTENV_PASSENV env var in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 31, 2020
1 parent 290afae commit 548c925
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ jobs:
for example_dir in examples/*; do
tox --discover $(which python) -c $example_dir -e py
done
env:
TOX_TESTENV_PASSENV: "CARGO_BUILD_TARGET"

env:
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
Expand Down
1 change: 0 additions & 1 deletion examples/maturin_extension/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
skipsdist = true

[testenv]
passenv = CARGO_BUILD_TARGET
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands =
Expand Down
1 change: 0 additions & 1 deletion examples/setuptools_rust_extension/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
skipsdist = true

[testenv]
passenv = CARGO_BUILD_TARGET
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands =
Expand Down
1 change: 0 additions & 1 deletion examples/word-count/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
skipsdist=true

[testenv]
passenv = CARGO_BUILD_TARGET
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands =
Expand Down

0 comments on commit 548c925

Please sign in to comment.