Skip to content

Commit 76655ad

Browse files
committed
Use source for venv activate
1 parent 1377b85 commit 76655ad

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ runs:
4242
- name: Test source distribution
4343
shell: bash
4444
run: |
45+
set -xe
4546
python -m venv test-sdist
46-
test-sdist/bin/activate
47+
source test-sdist/bin/activate
4748
which python
4849
python -m pip install --force-reinstall `find dist -name "*.tar.gz"`[${{ inputs.test_extras }}]
4950
cd ${{ runner.temp }}
@@ -53,8 +54,9 @@ runs:
5354
- name: Test source distribution
5455
shell: bash
5556
run: |
57+
set -xe
5658
python -m venv test-sdist
57-
test-sdist/bin/activate
59+
source test-sdist/bin/activate
5860
which python
5961
python -m pip install --force-reinstall `find dist -name "*.tar.gz"`
6062
cd ${{ runner.temp }}
@@ -71,8 +73,9 @@ runs:
7173
- name: Test pure Python wheel distribution
7274
shell: bash
7375
run: |
76+
set -xe
7477
python -m venv test-wheel
75-
test-wheel/bin/activate
78+
source test-wheel/bin/activate
7679
which python
7780
python -m pip install --force-reinstall `find dist -name "*.whl"`[${{ inputs.test_extras }}]
7881
cd ${{ runner.temp }}
@@ -82,8 +85,9 @@ runs:
8285
- name: Test pure Python wheel distribution
8386
shell: bash
8487
run: |
88+
set -xe
8589
python -m venv test-wheel
86-
test-wheel/bin/activate
90+
source test-wheel/bin/activate
8791
which python
8892
python -m pip install --force-reinstall `find dist -name "*.whl"`
8993
cd ${{ runner.temp }}

0 commit comments

Comments
 (0)