Update all CI runs to not use omnigibson-src directory.

This commit is contained in:
Cem Gökmen 2024-10-23 18:05:30 -07:00
parent 942ca2b34b
commit a3f0a7d7a7
3 changed files with 4 additions and 31 deletions

View File

@ -21,22 +21,18 @@ jobs:
shell: micromamba run -n omnigibson /bin/bash -leo pipefail {0}
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
path: omnigibson-src
- name: Install
working-directory: omnigibson-src
run: pip install -e .[dev]
- name: Generate example tests
working-directory: omnigibson-src
run: python tests/create_tests_of_examples.py
- name: Get list of generated tests
id: get-test-list
working-directory: omnigibson-src
run: |
echo "example_tests=$(cat tests/example_tests.json)" >> $GITHUB_OUTPUT
@ -69,17 +65,14 @@ jobs:
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
path: omnigibson-src
- name: Install
working-directory: omnigibson-src
run: pip install -e .[dev]
- name: Run tests
working-directory: omnigibson-src
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
@ -99,20 +92,12 @@ jobs:
shell: micromamba run -n omnigibson /bin/bash -leo pipefail {0}
needs: [run_test]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
path: omnigibson-src
- name: Pull reports
uses: actions/download-artifact@v3
with:
path: omnigibson-src
- 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
reporter: java-junit
fail-on-error: 'true'

View File

@ -30,10 +30,9 @@ jobs:
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install
working-directory: omnigibson-src
run: pip install -e .[dev]
- name: Run performance benchmark

View File

@ -44,20 +44,17 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
path: omnigibson-src
- name: Install
working-directory: omnigibson-src
run: pip install -e .[dev]
- name: Print env
run: printenv
- name: Run tests
working-directory: omnigibson-src
run: pytest -s tests/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml && cp ${{ matrix.test_file }}.xml ${GITHUB_WORKSPACE}/
continue-on-error: true
@ -89,20 +86,12 @@ jobs:
needs: [run_test]
if: always()
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
path: omnigibson-src
- name: Pull reports
uses: actions/download-artifact@v3
with:
path: omnigibson-src
- name: Test Report0
uses: dorny/test-reporter@v1
with:
name: Test Results
working-directory: omnigibson-src
path: ${{ github.run_id }}-tests-*/test_*.xml
reporter: java-junit
fail-on-error: 'false'