-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip CRDS sync if operational context is blank
- Loading branch information
1 parent
c02349f
commit 456a3c6
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}) | ||
|
@@ -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 }}) | ||
|
@@ -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 }}) | ||
|
@@ -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 }}) | ||
|
@@ -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 | ||
|
@@ -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 | ||
|