Skip to content

Commit

Permalink
skip CRDS sync if operational context is blank
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 1, 2022
1 parent c02349f commit 456a3c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/roman_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto
test_alldeps:
name: test optional dependencies (${{ matrix.os }}, Python ${{ matrix.python }})
Expand All @@ -121,10 +123,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto
test_devdeps:
name: test developer versions (${{ matrix.os }}, Python ${{ matrix.python }})
Expand All @@ -150,10 +154,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto
test_pyargs:
name: test --pyargs (${{ matrix.os }}, Python ${{ matrix.python }})
Expand Down Expand Up @@ -181,10 +187,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto --pyargs romancal
test_older_numpy:
name: test Numpy ${{ matrix.numpy }} (${{ matrix.os }}, Python ${{ matrix.python }})
Expand Down Expand Up @@ -219,10 +227,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto
test_with_coverage:
name: test with coverage
Expand All @@ -242,10 +252,12 @@ jobs:
- run: pip freeze
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV
- uses: actions/[email protected]
if: env.CRDS_CONTEXT != ''
with:
path: ${{ env.CRDS_PATH }}
key: crds-${{ env.CRDS_CONTEXT }}
- run: crds sync --contexts ${{ env.CRDS_CONTEXT }}
if: env.CRDS_CONTEXT != ''
- run: pytest -n auto --pyargs romancal --cov-report xml --cov
- run: coverage report -m
- uses: codecov/codecov-action@master
Expand Down

0 comments on commit 456a3c6

Please sign in to comment.