Skip to content

Commit

Permalink
Fix/upload artifacts on failure (#2362)
Browse files Browse the repository at this point in the history
* Feat: Upload artifacts on failure

* Chore: Force failure

* Fix: Change how when is called

* Chore: Change when artifacts are uploaded

* Chore: Remove force failure test
  • Loading branch information
carlosmondra authored Sep 27, 2024
1 parent 337b42d commit 15d3194
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,24 @@ jobs:
name: Run tests
command: |
cd ~/openreview-py-repo
mkdir test-reports
pip install -U pytest
pip install py
pip install selenium
pip install pytest-selenium
pip install -e .
TEST_FILES=$(circleci tests glob "tests/test_*.py" | circleci tests split --split-by=timings)
mkdir test-reports
pytest --durations=0 --junitxml=test-reports/junit.xml --driver Firefox --driver-path tests/drivers/geckodriver $TEST_FILES
- run:
name: Copy API logs to artifacts
when: on_fail
command: |
cp ~/openreview/logs/* ~/openreview-py-repo/test-reports/
cp ~/openreview-v2/logs/* ~/openreview-py-repo/test-reports/
- store_test_results:
path: test-reports
- store_artifacts:
when: always
path: test-reports
deploy:
working_directory: ~/openreview-py-repo
Expand Down

0 comments on commit 15d3194

Please sign in to comment.