Skip to content

Commit a5741c0

Browse files
committed
try this
1 parent b431d7e commit a5741c0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/actions/test-downstream/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,24 @@ runs:
1616
- name: set up venv
1717
shell: bash
1818
run: |
19+
set -x
20+
# Set up env values
1921
package_spec="${{inputs.package_spec}}"
2022
package_spec=${package_spec:-"${{inputs.package_name}}[test]"}
2123
pytest_args="${{inputs.pytest_args}}"
2224
pytest_args=${pytest_args:-"--pyargs ${{inputs.package_name}}"}
25+
env_values=${{ inputs.env_values }}
26+
env_values=${package_spec:-"FIZZ=BUZZ"}
27+
28+
# Set up venv
2329
python -m venv test_venv
2430
bin_dir=./test_venv/bin
2531
${bin_dir}/python -m pip install -U pip
2632
${bin_dir}/python -m pip install ${package_spec}
2733
${bin_dir}/python -m pip install . --force-reinstall
28-
${{ inputs.env_values }}; ${bin_dir}/pytest ${pytest_args}
34+
35+
# Test the downstream package
36+
${env_values}; ${bin_dir}/pytest ${pytest_args}
37+
38+
# Cleanup
2939
rm -rf ./test_venv

0 commit comments

Comments
 (0)