Skip to content

Commit 99ec2d9

Browse files
authored
ci: always run integration tests on workflow_dispatch trigger (#2085)
1 parent 2a06802 commit 99ec2d9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,48 +82,48 @@ jobs:
8282
df -h
8383
8484
- name: Skip - no source changes
85-
if: steps.filter.outputs.src != 'true' && github.event_name != 'schedule'
85+
if: steps.filter.outputs.src != 'true' && github.event_name != 'schedule' && github.event_name != 'workflow_dispatch'
8686
run: echo "Skipping tests because no source code changes detected"
8787

8888
- name: Setup Pixi
89-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
89+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
9090
uses: prefix-dev/setup-pixi@v0.9.4
9191
with:
9292
pixi-version: v0.59.0
9393
cache: true
9494
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
9595

9696
- name: Setup cache keys
97-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
97+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
9898
run: |
9999
echo "WEEK=$(date +'%Y%U')" >> $GITHUB_ENV # data
100100
echo "MONTH=$(date +'%Y%m')" >> $GITHUB_ENV # cutouts
101101
echo "VERSIONS_HASH=${{ hashFiles('data/versions.csv') }}" >> $GITHUB_ENV
102102
103103
- uses: actions/cache@v5
104-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
104+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
105105
with:
106106
path: data
107107
key: data-${{ env.WEEK }}-${{ env.VERSIONS_HASH }}
108108

109109
- uses: actions/cache@v5
110-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
110+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
111111
with:
112112
path: cutouts
113113
key: cutouts-${{ env.MONTH }}
114114

115115
- name: Restore git-tracked files in data/
116-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
116+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
117117
run: git checkout HEAD -- data/
118118

119119
- name: Run pylint check on scripts
120-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
120+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
121121
# check for undefined variables to reuse functions across scripts
122122
run: |
123123
pixi run pylint --disable=all --enable=E0601,E0606 --output-format=parseable scripts/add_* scripts/prepare_* scripts/solve_*
124124
125125
- name: Run snakemake test workflows
126-
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule'
126+
if: steps.filter.outputs.src == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
127127
env:
128128
SNAKEMAKE_STORAGE_CACHED_HTTP_CACHE: ""
129129
SNAKEMAKE_STORAGE_CACHED_HTTP_SKIP_REMOTE_CHECKS: "1"

0 commit comments

Comments
 (0)