11name : Cron
22
33on :
4- # Trigger on completion of the scheduled_builds.yml file (only on main)
5- workflow_run :
6- workflows : [Scheduled build triggerer]
74 # Manual runs through the web UI and also non-main cron job triggering
85 workflow_dispatch :
96 # We also want this workflow triggered if the 'Run cron CI' label is added
3734 cron :
3835 # Run on all triggers other than pull_request unless there's a label
3936 if : (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Run cron CI'))
40- uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
37+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@a138926f6e4f9667d1306c24f24f5bdcaa01fbab # v2.5.0
4138 with :
4239 default_python : ' 3.12'
4340 submodules : false
@@ -62,14 +59,14 @@ jobs:
6259 permissions :
6360 issues : write
6461 steps :
65- - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
62+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
6663 with :
6764 name : py314-devdeps-reportlog-(ubuntu-latest)
6865 path : pytest-log
6966
7067 - run : ls -lha pytest-log/
7168
72- - uses : scientific-python/issue-from-pytest-log-action@558a3dfdd251069b328d3fded994824ddbefc47b # v1.4 .0
69+ - uses : scientific-python/issue-from-pytest-log-action@8e905db353437cda1d6a773de245343fbfc940dd # v1.5 .0
7370 with :
7471 log-path : pytest-log/pytest-log.jsonl
7572 issue-title : " Cron devdeps build failure"
7875 cron-online :
7976 # Run on all triggers other than pull_request unless there's a label
8077 if : (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Run cron CI'))
81- uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
78+ uses : OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@a138926f6e4f9667d1306c24f24f5bdcaa01fbab # v2.5.0
8279 with :
8380 default_python : ' 3.12'
8481 submodules : false
@@ -102,37 +99,43 @@ jobs:
10299 if : (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Run cron CI'))
103100 runs-on : ubuntu-latest
104101 steps :
105- - uses : actions/checkout@v6
102+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106103 with :
107104 fetch-depth : 0
108105 lfs : true
109- - uses : conda-incubator/setup-miniconda@v3
106+ persist-credentials : false
107+
108+ - uses : conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
110109 with :
111110 activate-environment : sunpy-test
112111 environment-file : sunpy-dev-env.yml
113112 python-version : " 3.13"
114113 conda-remove-defaults : " true"
114+
115115 - name : Install sunpy
116116 shell : bash -el {0}
117117 run : |
118118 pip install --no-deps --no-build-isolation .
119+
119120 - name : Run test
120121 shell : bash -el {0}
121122 run : |
122123 conda list
123124 cd /tmp
124125 pytest -vvv -r a --pyargs sunpy --cov-report=xml --cov=sunpy --cov-config=$GITHUB_WORKSPACE/pyproject.toml $GITHUB_WORKSPACE/docs -n auto --color=yes
125- - uses : codecov/codecov-action@v5
126+ - uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
126127 with :
127- token : ${{ secrets.CODECOV_TOKEN }}
128+ token : ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
128129 files : ./coverage.xml
129130
130131 notify :
131- if : always () && ( github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_run')
132+ if : ${{ !cancelled () && github.event_name == 'workflow_dispatch' }}
132133 needs : [cron, cron-online, conda]
133134 runs-on : ubuntu-latest
135+ environment :
136+ name : matrix
134137 steps :
135- - uses : Cadair/matrix-notify-action@main
138+ - uses : Cadair/matrix-notify-action@31c7cc36051ee7dc4157a22c1f13dbc7d68e5120 # v2
136139 with :
137140 matrix_token : ${{ secrets.matrix_access_token }}
138141 github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments