Skip to content

Commit

Permalink
Use data container for integration tests (#901)
Browse files Browse the repository at this point in the history
* Avoid downloading data from LCRC which throttles the webserver
  • Loading branch information
mahf708 authored Dec 5, 2024
1 parent ca41b0e commit 91b5f53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10"]
container:
image: ghcr.io/e3sm-project/containers-e3sm-diags-test-data:e3sm-diags-test-data-0.0.2
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
Expand Down Expand Up @@ -101,8 +103,9 @@ jobs:
run: pytest tests/e3sm_diags

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Download Integration Test Data
run: python -m tests.integration.download_data
name: Copy Integration Test Data
run: |
cp -r /e3sm_diags_downloaded_data/tests/integration/* tests/integration/
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Run Integration Tests
Expand Down

0 comments on commit 91b5f53

Please sign in to comment.