diff --git a/.github/workflows/examples-as-test.yml b/.github/workflows/examples-as-test.yml index d04f5919b..380c9f6c9 100644 --- a/.github/workflows/examples-as-test.yml +++ b/.github/workflows/examples-as-test.yml @@ -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 @@ -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'