From 475b8f4bba74ff7ac896e35ffb3576e5040db508 Mon Sep 17 00:00:00 2001 From: Fabio Seel Date: Fri, 11 Oct 2024 14:10:51 +0200 Subject: [PATCH 1/2] fix: ci should not run on pushes to master but in pull request --- .github/workflows/code_check.yml | 2 ++ .github/workflows/container_build.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index dcd5852..7abfbb3 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -2,6 +2,8 @@ name: Code Checking on: push: + branches-ignore: + - master paths: - '**/*.py' pull_request: diff --git a/.github/workflows/container_build.yml b/.github/workflows/container_build.yml index b047ef2..cf48924 100644 --- a/.github/workflows/container_build.yml +++ b/.github/workflows/container_build.yml @@ -4,6 +4,8 @@ on: schedule: - cron: '0 2 1 * *' push: + branches-ignore: + - master paths: - 'resources/retinal-rl.def' pull_request: From 14fd46f7df330774962b039a98c77c7328b802ef Mon Sep 17 00:00:00 2001 From: Fabio Seel Date: Fri, 11 Oct 2024 14:17:16 +0200 Subject: [PATCH 2/2] fix: also on pull request, lint should only run if .py files changed --- .github/workflows/code_check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 7abfbb3..2e2c381 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -9,6 +9,8 @@ on: pull_request: branches: - master + paths: + - '**/*.py' env: singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest