Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ac000 committed Aug 27, 2024
1 parent fb25228 commit bbaf046
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,22 +352,18 @@ jobs:

- name: Install pytest
run: |
sudo -H pip install pytest
if: steps.metadata.outputs.module != 'wasm' &&
steps.metadata.outputs.module != 'wasm-wasi-component'
if [ "${{ matrix.build }}" == "wasm-wasi-component" ]; then
pip install pytest
else
sudo -H pip install pytest
fi
if: steps.metadata.outputs.module != 'wasm'

- name: Run ${{ steps.metadata.outputs.module }} tests
run: |
sudo -E pytest --print-log ${{ steps.metadata.outputs.testpath }}
if: steps.metadata.outputs.module != 'wasm' &&
steps.metadata.outputs.module != 'wasm-wasi-component'

- name: Install pytest (wasm-wasi-component)
run: |
pip install pytest
if: steps.metadata.outputs.module == 'wasm-wasi-component'

- name: Run ${{ steps.metadata.outputs.module }} tests (wasm-wasi-component)
run: |
pytest --print-log ${{ steps.metadata.outputs.testpath }}
if: steps.metadata.outputs.module == 'wasm-wasi-component'
if [ "${{ matrix.build }}" == "wasm-wasi-component" ]; then
pytest --print-log ${{ steps.metadata.outputs.testpath }}
else
sudo -E pytest --print-log ${{ steps.metadata.outputs.testpath }}
fi
if: steps.metadata.outputs.module != 'wasm'

0 comments on commit bbaf046

Please sign in to comment.