File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
.github/actions/test-downstream Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,24 @@ runs:
16
16
- name : set up venv
17
17
shell : bash
18
18
run : |
19
+ set -x
20
+ # Set up env values
19
21
package_spec="${{inputs.package_spec}}"
20
22
package_spec=${package_spec:-"${{inputs.package_name}}[test]"}
21
23
pytest_args="${{inputs.pytest_args}}"
22
24
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
23
29
python -m venv test_venv
24
30
bin_dir=./test_venv/bin
25
31
${bin_dir}/python -m pip install -U pip
26
32
${bin_dir}/python -m pip install ${package_spec}
27
33
${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
29
39
rm -rf ./test_venv
You can’t perform that action at this time.
0 commit comments