Repository: lanl/BEE (language: python)

Issue:
Fix WIP and no-ci labels
On April 16 during our project meeting we decided that CI should run for PR's with the ``WIP`` label. Currently CI is by-passed.
However, the  ``no ci`` label needs to be fixes so CI can be by-passed if so labeled.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index e525249d5..ab8408f4d 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -5,11 +5,12 @@ on:
   push:
     branches: [main, develop]
   pull_request:
-    types: [opened, synchronize, edited]
+    types: [opened, synchronize, edited, labeled, unlabeled]
     branches: [main, develop]
 
 jobs:
   docs:
+    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP (no-ci)')) && !(contains(github.event.pull_request.labels.*.name, 'WIP (lint-only)')) }}
     name: Build Docs
     runs-on: ubuntu-latest
     steps:
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index f0d5162d7..97acbf926 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -14,7 +14,7 @@ env: {}
 
 jobs:
   integration-test:
-    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP') || contains(github.event.pull_request.labels.*.name, 'lint-only')) }}
+    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP (no-ci)')) && !(contains(github.event.pull_request.labels.*.name, 'WIP (lint-only)')) }}
     name: BEE Integration Test
     strategy:
       matrix:
diff --git a/.github/workflows/pylama.yml b/.github/workflows/pylama.yml
index 831e5187b..3ddd29218 100644
--- a/.github/workflows/pylama.yml
+++ b/.github/workflows/pylama.yml
@@ -7,11 +7,12 @@ on:
   push:
     branches: [main, develop]
   pull_request:
-    types: [opened, synchronize, edited]
+    types: [opened, synchronize, edited, labeled, unlabeled]
     branches: [main, develop]
 
 jobs:
   pylama:
+    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP (no-ci)')) }}
     name: PyLama Lint
     runs-on: ubuntu-latest
     steps:


Test patch:
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 23d9db533..9d9964085 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -14,7 +14,7 @@ env: {}
 
 jobs:
   integration-test:
-    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP') || contains(github.event.pull_request.labels.*.name, 'lint-only')) }}
+    if: ${{ !(contains(github.event.pull_request.labels.*.name, 'WIP (no-ci)')) && !(contains(github.event.pull_request.labels.*.name, 'WIP (lint-only)')) }}
     name: BEE Unit Tests
     env:
       # Unit tests are only run with Slurm right now