-
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.
add ability to specify CRDS context with
workflow_dispatch
- Loading branch information
1 parent
c981916
commit b5b6a94
Showing
1 changed file
with
24 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 |
---|---|---|
|
@@ -14,6 +14,12 @@ on: | |
# Weekly Monday 9AM build | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 9 * * 1' | ||
workflow_dispatch: | ||
inputs: | ||
crds_context: | ||
type: string | ||
description: CRDS context(s) to use with tests (defaults to operational context) | ||
required: false | ||
|
||
env: | ||
CRDS_SERVER_URL: https://roman-crds-test.stsci.edu | ||
|
@@ -92,6 +98,9 @@ jobs: | |
- run: pip install ".[test]" pytest-xdist | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|
@@ -122,6 +131,9 @@ jobs: | |
- run: pip install ".[test,all]" pytest-xdist | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|
@@ -153,6 +165,9 @@ jobs: | |
- run: pip install ".[test]" pytest-xdist | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|
@@ -186,6 +201,9 @@ jobs: | |
- run: pip install ".[test]" pytest-xdist | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|
@@ -226,6 +244,9 @@ jobs: | |
- run: pip install numpy==${{ matrix.numpy }} | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|
@@ -251,6 +272,9 @@ jobs: | |
- run: pip install ".[test]" pytest-xdist pytest-cov | ||
- run: pip freeze | ||
- run: echo "CRDS_CONTEXT=$(crds list --operational-context)" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context == '' | ||
- run: echo "CRDS_CONTEXT=${{ github.event.inputs.crds_context }}" >> $GITHUB_ENV | ||
if: github.event.inputs.crds_context != '' | ||
- uses: actions/[email protected] | ||
if: env.CRDS_CONTEXT != '' | ||
with: | ||
|