From 9cd94a83c86ea894c1c299fe6e23a1294bc14f23 Mon Sep 17 00:00:00 2001 From: Omar Younis Date: Sun, 12 Jan 2025 00:39:53 +0100 Subject: [PATCH] make CI running in PRs --- .github/workflows/ci.yml | 5 ++++- .github/workflows/pre-commit.yml | 5 ++++- .github/workflows/python-package-conda.yml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74279369..61d8e9f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: Python package -on: [push] +on: + pull_request: + push: + branches: [master] jobs: build: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 6b552a0d..3f9863b2 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -2,7 +2,10 @@ # This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file. --- name: pre-commit -on: [push] +on: + pull_request: + push: + branches: [master] permissions: contents: read diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 9d45abb2..aec0afe1 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -1,6 +1,9 @@ name: Python Package using Conda -on: [push] +on: + pull_request: + push: + branches: [master] jobs: build-linux: