Skip to content

Commit

Permalink
Update run_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jan 26, 2024
1 parent b9f370f commit 80c94fd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,23 @@ jobs:

- name: Install platform-specific requirements (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
choco install --no-progress --yes mkvtoolnix
- name: Install pytest
run: |
pip install pytest
- name: Run tests
- name: Run tests (Ubuntu && macOS)
if: matrix.os != 'windows-latest'
run: |
echo "C:\Program Files\MKVToolNix" >> $GITHUB_PATH
echo "{PATH}={C:\Program Files\MKVToolNix}" >> "$GITHUB_ENV"
pytest
# Problem with the env var on Windows.
# If we don't refresh them in the same step has when we run pytest, mkvtoolnix isn't in the env var
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: |
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
refreshenv
pytest

0 comments on commit 80c94fd

Please sign in to comment.