Skip to content

Commit 2b219cf

Browse files
committed
. e Use tox-installed venv when checking approvaltests version
1 parent ebbecb6 commit 2b219cf

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/test_current_release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ jobs:
3333
uses: actions/setup-python@v6
3434
with:
3535
python-version: ${{ matrix.python-version }}
36-
- name: Install ApprovalTests
37-
run: |
38-
pip install approvaltests
39-
pip show approvaltests
40-
echo "## ApprovalTests Version" >> $GITHUB_STEP_SUMMARY
41-
pip show approvaltests | grep Version >> $GITHUB_STEP_SUMMARY
42-
shell: bash
4336
- name: Run Tests
4437
run: |
4538
./run_tests.sh
4639
shell: bash
40+
- name: Check ApprovalTests version
41+
run: |
42+
. .tox/py/bin/activate || . .tox/py/bin/activate.ps1
43+
echo "## ApprovalTests Version" >> $GITHUB_STEP_SUMMARY
44+
pip show approvaltests | grep Version >> $GITHUB_STEP_SUMMARY
4745
- name: Publish Test Report
4846
uses: mikepenz/action-junit-report@v6
4947
if: always()

0 commit comments

Comments
 (0)