Skip to content

Commit

Permalink
Fix github actions for Work in Progress labels
Browse files Browse the repository at this point in the history
    'WIP' - Work in Progress, all github CI actions will run
    'WIP (no-ci)' - Work in Progress, no github CI actions will run
    'WIP (lint-only)' - Work in Progress, only pylama will run
  • Loading branch information
pagrubel committed Apr 23, 2024
1 parent 643c59d commit 175dead
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pylama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 175dead

Please sign in to comment.