@@ -14,6 +14,11 @@ on:
branches:
- main
+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group
+concurrency:
+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}
+ cancel-in-progress: true
+
jobs:
# Build the documentation website
build:
@@ -9,6 +9,11 @@ on:
pull_request:
test:
runs-on: ubuntu-latest
@@ -12,6 +12,11 @@ on:
- 'frontend/**'
- '.github/workflows/fe-unit-tests.yml'
# Run frontend unit tests
fe-test:
@@ -19,6 +19,11 @@ on:
required: true
default: ''
env:
BASE_IMAGE_FOR_HASH_EQUIVALENCE_TEST: nikolaik/python-nodejs:python3.12-nodejs22
RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -10,6 +10,11 @@ on:
# Run lint on the frontend code
lint-frontend:
# Run python unit tests on macOS
test-on-macos: