-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update stable branch of 0.22.0 (#542)
- Loading branch information
Showing
33 changed files
with
2,174 additions
and
1,289 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: ".github/workflows" # Location of package manifests | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" | ||
|
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
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: contexts | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
jwst: | ||
value: ${{ jobs.contexts.outputs.jwst }} | ||
roman: | ||
value: ${{ jobs.contexts.outputs.roman }} | ||
workflow_dispatch: | ||
|
||
jobs: | ||
contexts: | ||
name: retrieve latest CRDS contexts | ||
runs-on: ubuntu-latest | ||
outputs: | ||
jwst: ${{ steps.jwst_crds_context.outputs.pmap }} | ||
roman: ${{ steps.roman_crds_context.outputs.pmap }} | ||
steps: | ||
- id: jwst_crds_context | ||
env: | ||
OBSERVATORY: jwst | ||
CRDS_SERVER_URL: https://jwst-crds.stsci.edu | ||
run: > | ||
echo "pmap=$( | ||
curl -s -X POST -d '{"jsonrpc": "1.0", "method": "get_default_context", "params": ["${{ env.OBSERVATORY }}", null], "id": 1}' ${{ env.CRDS_SERVER_URL }}/json/ --retry 8 --connect-timeout 10 | | ||
python -c "import sys, json; print(json.load(sys.stdin)['result'])" | ||
)" >> $GITHUB_OUTPUT | ||
- run: if [[ ! -z "${{ steps.jwst_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.jwst_crds_context.outputs.pmap }}; else exit 1; fi | ||
- id: roman_crds_context | ||
env: | ||
OBSERVATORY: roman | ||
CRDS_SERVER_URL: https://roman-crds.stsci.edu | ||
run: > | ||
echo "pmap=$( | ||
curl -s -X POST -d '{"jsonrpc": "1.0", "method": "get_default_context", "params": ["${{ env.OBSERVATORY }}", null], "id": 1}' ${{ env.CRDS_SERVER_URL }}/json/ --retry 8 | | ||
python -c "import sys, json; print(json.load(sys.stdin)['result'])" | ||
)" >> $GITHUB_OUTPUT | ||
- run: if [[ ! -z "${{ steps.roman_crds_context.outputs.pmap }}" ]]; then echo ${{ steps.roman_crds_context.outputs.pmap }}; else exit 1; fi |
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 |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: test downstream packages | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Weekly Monday 9AM build | ||
# * is a special character in YAML so you have to quote this string | ||
- cron: '0 9 * * 1' | ||
pull_request: | ||
# We also want this workflow triggered if the `Downstream CI` label is | ||
# added or present when PR is updated | ||
types: | ||
- synchronize | ||
- labeled | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# Only cancel in-progress jobs or runs for the current workflow | ||
# This cancels the already triggered workflows for a specific PR without canceling | ||
# other instances of this workflow (other PRs, scheduled triggers, etc) when something | ||
# within that PR re-triggers this CI | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
environment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: data_path | ||
run: echo "path=${{ runner.temp }}/data" >> $GITHUB_OUTPUT | ||
outputs: | ||
data_path: ${{ steps.data_path.outputs.path }} | ||
|
||
crds_contexts: | ||
uses: spacetelescope/crds/.github/workflows/contexts.yml@master | ||
|
||
jwst: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d68193b68216da64eafaa618f53c59f5d271c56e # v1.14.0 | ||
needs: [ environment, crds_contexts ] | ||
with: | ||
setenv: | | ||
CRDS_PATH: ${{ needs.environment.outputs.data_path }}/crds | ||
CRDS_SERVER_URL: https://jwst-crds.stsci.edu | ||
CRDS_CLIENT_RETRY_COUNT: 3 | ||
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20 | ||
cache-path: ${{ needs.environment.outputs.data_path }}/crds | ||
cache-key: crds-${{ needs.crds_contexts.outputs.jwst }} | ||
envs: | | ||
- linux: py311-test-jwst-cov-xdist | ||
romancal: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d68193b68216da64eafaa618f53c59f5d271c56e # v1.14.0 | ||
needs: [ environment, crds_contexts ] | ||
with: | ||
setenv: | | ||
CRDS_PATH: ${{ needs.environment.outputs.data_path }}/crds | ||
CRDS_SERVER_URL: https://roman-crds.stsci.edu | ||
CRDS_CLIENT_RETRY_COUNT: 3 | ||
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20 | ||
cache-path: ${{ needs.environment.outputs.data_path }}/crds | ||
cache-key: crds-${{ needs.crds_contexts.outputs.jwst }} | ||
envs: | | ||
- linux: py311-test-romancal-cov-xdist | ||
romanisim_data: | ||
needs: [ environment ] | ||
uses: spacetelescope/romanisim/.github/workflows/retrieve_cache.yml@main | ||
with: | ||
cache_path: ${{ needs.environment.outputs.data_path }} | ||
|
||
romanisim: | ||
needs: [ romanisim_data ] | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d68193b68216da64eafaa618f53c59f5d271c56e # v1.14.0 | ||
with: | ||
libraries: | | ||
brew: | ||
- eigen | ||
- fftw | ||
setenv: | | ||
WEBBPSF_PATH: ${{ needs.romanisim_data.outputs.cache_path }}/webbpsf-data/ | ||
GALSIM_CAT_PATH: ${{ needs.romanisim_data.outputs.cache_path }}/galsim_data/real_galaxy_catalog_23.5_example.fits | ||
FFTW_DIR: /opt/homebrew/opt/fftw/lib/ | ||
cache-path: ${{ needs.romanisim_data.outputs.cache_path }} | ||
cache-key: ${{ needs.romanisim_data.outputs.cache_key }} | ||
envs: | | ||
- linux: py311-test-romanisim-cov-xdist | ||
astropy: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d68193b68216da64eafaa618f53c59f5d271c56e # v1.14.0 | ||
if: (github.repository == 'spacetelescope/gwcs' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Downstream CI'))) | ||
with: | ||
submodules: false | ||
# Any env name which does not start with `pyXY` will use this Python version. | ||
default_python: '3.11' | ||
envs: | | ||
- linux: specutils | ||
third-party: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@d68193b68216da64eafaa618f53c59f5d271c56e # v1.14.0 | ||
if: (github.repository == 'spacetelescope/gwcs' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Downstream CI'))) | ||
with: | ||
submodules: false | ||
# Any env name which does not start with `pyXY` will use this Python version. | ||
default_python: '3.11' | ||
envs: | | ||
- linux: ndcube | ||
- linux: dkist |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: download and cache romanisim data | ||
|
||
on: | ||
schedule: | ||
- cron: "42 4 * * 3" | ||
workflow_dispatch: | ||
inputs: | ||
webbpsf_minimal: | ||
description: minimal WebbPSF dataset | ||
type: boolean | ||
required: false | ||
default: true | ||
|
||
jobs: | ||
download_romanisim_data: | ||
uses: spacetelescope/romanisim/.github/workflows/data.yml@main | ||
with: | ||
webbpsf_minimal: ${{ github.event_name != 'workflow_dispatch' && true || inputs.webbpsf_minimal }} |
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
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
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
Oops, something went wrong.