Skip to content

Fixes for release

Fixes for release #924

name: DKIST Downstream
on:
# Allow manual runs through the web UI
workflow_dispatch:
push:
# Only run CI on main, release branches, and pre-release auto PRs
branches:
- 'main'
- '*.*'
- '!prepare-v*'
# We also want this workflow triggered if the 'Run cron CI' label is added
# or present when PR is updated
pull_request:
types:
- synchronize
- labeled
- reopened
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '0 9 * * 1' # Every Monday at 0900 UTC
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
downstream:
if: (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Run downstream CI'))
runs-on: ubuntu-latest
strategy:
matrix:
toxenv:
- dkist-inventory
- dkist-processing-common
steps:
- name: Git checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'
- run: python -m pip install -U tox
- name: Start redis
if: ${{ matrix.toxenv == 'dkist-processing-common' }}
uses: supercharge/redis-github-action@bc274cb7238cd63a45029db04ee48c07a72609fd # 1.8.1
- name: Start rabbitmq
if: ${{ matrix.toxenv == 'dkist-processing-common' }}
uses: namoshek/rabbitmq-github-action@80a182e44c7f60bc3417a8689d6a24fe9d08b27b # v1.2.0
with:
version: 3
ports: "5672:5672"
- name: Run Tox
run: tox -e ${{ matrix.toxenv }} -- --color=yes -v
notify:
if: always() && github.event_name != 'pull_request' && github.ref_name == 'main'
needs: [downstream]
runs-on: ubuntu-latest
environment:
name: notify
steps:
- uses: Cadair/matrix-notify-action@31c7cc36051ee7dc4157a22c1f13dbc7d68e5120 # v2
with:
matrix_token: ${{ secrets.matrix_access_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
homeserver: ${{ secrets.matrix_homeserver }}
roomid: '!RehafayCrAiXbzVpXI:openastronomy.org'