Skip to content

Commit

Permalink
Update examples as tests work flow
Browse files Browse the repository at this point in the history
  • Loading branch information
hang-yin committed Aug 13, 2024
1 parent 8a6a58a commit 7e7528b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/examples-as-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@ jobs:

- name: Run tests
working-directory: omnigibson-src
run: |
if [[ "${{ matrix.test_file }}" == *"_test" ]]; then
pytest -s tests/tests_of_examples/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml
else
pytest -s tests/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml
fi
cp ${{ matrix.test_file }}.xml ${GITHUB_WORKSPACE}/
run: pytest -s tests/tests_of_examples/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml && cp ${{ matrix.test_file }}.xml ${GITHUB_WORKSPACE}/

- name: Deploy artifact
uses: actions/upload-artifact@v3
Expand All @@ -129,12 +123,12 @@ jobs:
uses: actions/download-artifact@v3
with:
path: omnigibson-src
- name: Test Report0
- name: Example Test Report0
uses: dorny/test-reporter@v1
with:
name: Example Test Results
working-directory: omnigibson-src
path: ${{ github.run_id }}-tests-*/test_*.xml
path: ${{ github.run_id }}-tests-*/*_test.xml
reporter: java-junit
fail-on-error: 'true'
fail-on-empty: 'true'
Expand Down

0 comments on commit 7e7528b

Please sign in to comment.