Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow CI runs for normal PRs, but avoid runs for draft PRs #539

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/cpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# Trigger on pull requests to master or develop that are
# marked as "ready for review" (non-draft PRs)
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- master
Expand All @@ -24,6 +27,8 @@ env:

jobs:
build-docker-image-cpu:
# do not trigger on draft PRs
if: ${{ ! github.event.pull_request.draft }}
# Build and push temporary Docker image to GitHub's container registry
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -174,14 +179,14 @@ jobs:
shell: 'bash -c "docker exec -i mala-cpu bash < {0}"'
run: |
# Download test data repository from RODARE. If the version changes
# this URL has to be adapted (the number after /record/ and the
# this URL has to be adapted (the number after /record/ and the
# version have to be incremented)
wget "https://rodare.hzdr.de/record/2999/files/mala-project/test-data-1.8.0.zip"

# Once downloaded, we have to unzip the file. The name of the root
# folder in the zip file has to be updated for data repository
# updates as well - the string at the end is the hash of the data
# repository commit.
# updates as well - the string at the end is the hash of the data
# repository commit.
unzip -q test-data-1.8.0.zip
mv mala-project-test-data-d5694c7 mala_data

Expand Down Expand Up @@ -247,4 +252,3 @@ jobs:

- name: Push Docker image
run: docker push $IMAGE_REPO/$IMAGE_NAME --all-tags

5 changes: 5 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Documenation
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- master
Expand All @@ -13,6 +16,8 @@ on:

jobs:
test-docstrings:
# do not trigger on draft PRs
if: ${{ ! github.event.pull_request.draft }}
runs-on: ubuntu-24.04
steps:
- name: Check out repository
Expand Down
Loading