diff --git a/.github/workflows/test-wasm.yml b/.github/workflows/test-wasm.yml index 59f2230..e880dd7 100644 --- a/.github/workflows/test-wasm.yml +++ b/.github/workflows/test-wasm.yml @@ -3,13 +3,18 @@ name: Test WebAssembly on: workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + pull_request: + types: [labeled, synchronize, reopened] jobs: build: + if: >- + github.event_name == 'workflow_dispatch' || + (github.event.action == 'labeled' && github.event.label.name == 'run-wasm-ci') || + (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'run-wasm-ci')) + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true runs-on: ubuntu-latest timeout-minutes: 30 steps: diff --git a/dev-environment.yml b/dev-environment.yml index 288a620..42988c1 100644 --- a/dev-environment.yml +++ b/dev-environment.yml @@ -7,6 +7,7 @@ dependencies: - cmake - pkg-config - pre-commit + - identify >=2.6 - python - pytest - termcolor-cpp diff --git a/wasm/wasm-environment.yml b/wasm/wasm-environment.yml index 4e9c241..a5e9d9a 100644 --- a/wasm/wasm-environment.yml +++ b/wasm/wasm-environment.yml @@ -4,6 +4,7 @@ channels: - conda-forge dependencies: - pre-commit + - identify >=2.6 # To modify emscripten-forge recipe - python - pyyaml