Skip to content

Commit bc754cc

Browse files
committed
Streamline run all tests workflow
1 parent 3dc0afb commit bc754cc

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/run_all_tests.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
python -m pip install -U ".[test]"
6868
python -m pip list
6969
python -m pip check
70+
7071
- name: Run tests
7172
run: |
7273
pytest -v
@@ -77,18 +78,26 @@ jobs:
7778
python -m build
7879
ls -1 dist
7980
80-
- name: Test installation from a wheel (POSIX)
81-
if: ${{ matrix.os != 'windows-latest' }}
81+
- name: Create virtual environment for testing installation from the wheel
8282
run: |
8383
python -m venv test-wheel-env
84+
85+
- name: Activate virtual environment for testing installation from the wheel (POSIX)
86+
if: ${{ matrix.os != 'windows-latest' }}
87+
run: |
8488
source test-wheel-env/bin/activate
85-
python -m pip install dist/*-none-any.whl
86-
python -c "import ndx_franklab_novela"
8789
88-
- name: Test installation from a wheel (windows)
90+
- name: Activate virtual environment for testing installation from the wheel (Windows)
8991
if: ${{ matrix.os == 'windows-latest' }}
9092
run: |
91-
python -m venv test-wheel-env
9293
source test-wheel-env/Scripts/activate
94+
95+
- name: Install the package from the wheel and check import
96+
run: |
9397
python -m pip install dist/*-none-any.whl
9498
python -c "import ndx_franklab_novela"
99+
100+
- name: Run tests in the virtual environment
101+
run: |
102+
python -m pip install pytest
103+
pytest -v

0 commit comments

Comments
 (0)