Add romanisim to downstream #16
Workflow file for this run
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
name: Downstream | ||
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: | ||
- '*' | ||
env: | ||
DATA_PATH: /tmp/data | ||
# 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=${{ env.DATA_PATH }}" >> $GITHUB_OUTPUT | ||
outputs: | ||
data_path: ${{ steps.data_path.outputs.path }} | ||
crds_contexts: | ||
uses: ./.github/workflows/contexts.yml | ||
jwst: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.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@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.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 | ||
- linux: py311-test-romanisim-cov-xdist | ||
get_romanism_data: | ||
uses: ./.github/workflows/webbpsf_data.yml | ||
Check failure on line 73 in .github/workflows/downstream.yml GitHub Actions / .github/workflows/downstream.ymlInvalid workflow file
|
||
romanisim_data_cache: | ||
needs: [ get_romanism_data ] | ||
uses: ./.github/workflows/get_webbpsf.yml | ||
romanisim: | ||
needs: [ romanisim_data_cache ] | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0 | ||
with: | ||
libraries: | | ||
brew: | ||
- eigen | ||
- fftw | ||
setenv: | | ||
WEBBPSF_PATH: ${{ needs.latest_data_cache.outputs.cache_path }}webbpsf-data/ | ||
GALSIM_CAT_PATH: ${{ needs.latest_data_cache.outputs.cache_path }}galsim_data/real_galaxy_catalog_23.5_example.fits | ||
FFTW_DIR: /opt/homebrew/opt/fftw/lib/ | ||
cache-path: ${{ needs.latest_data_cache.outputs.cache_path }} | ||
cache-key: ${{ needs.latest_data_cache.outputs.cache_key }} | ||
envs: | | ||
- linux: py311-test-romanisim-cov-xdist | ||
astropy: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.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@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.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 |