Skip to content

Commit 29ba827

Browse files
authored
Add ability to run wasm tests by adding a label to a PR (#196)
1 parent 944f9d2 commit 29ba827

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/test-wasm.yml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ name: Test WebAssembly
33

44
on:
55
workflow_dispatch:
6-
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true
6+
pull_request:
7+
types: [labeled, synchronize, reopened]
108

119
jobs:
1210
build:
11+
if: >-
12+
github.event_name == 'workflow_dispatch' ||
13+
(github.event.action == 'labeled' && github.event.label.name == 'run-wasm-ci') ||
14+
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'run-wasm-ci'))
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1318
runs-on: ubuntu-latest
1419
timeout-minutes: 30
1520
steps:

‎dev-environment.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- cmake
88
- pkg-config
99
- pre-commit
10+
- identify >=2.6
1011
- python
1112
- pytest
1213
- termcolor-cpp

‎wasm/wasm-environment.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
dependencies:
66
- pre-commit
7+
- identify >=2.6
78
# To modify emscripten-forge recipe
89
- python
910
- pyyaml

0 commit comments

Comments
 (0)