Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Run CI only on the main branch, on release branches and on PRs (#6720)

Adrián Chaves26ecc93228bc
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index a064bf5b2..312af3b2e 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -1,5 +1,10 @@
name: Checks
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
+ - '[0-9]+.[0-9]+'
+ pull_request:
concurrency:
group: ${{github.workflow}}-${{ github.ref }}
diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml
index c28a99982..ce0e1a6c2 100644
--- a/.github/workflows/tests-macos.yml
+++ b/.github/workflows/tests-macos.yml
@@ -1,5 +1,10 @@
name: macOS
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
+ - '[0-9]+.[0-9]+'
+ pull_request:
concurrency:
group: ${{github.workflow}}-${{ github.ref }}
diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml
index 6c7842217..f74575ee1 100644
--- a/.github/workflows/tests-ubuntu.yml
+++ b/.github/workflows/tests-ubuntu.yml
@@ -1,5 +1,10 @@
name: Ubuntu
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
+ - '[0-9]+.[0-9]+'
+ pull_request:
concurrency:
group: ${{github.workflow}}-${{ github.ref }}
diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml
index 45e4ca157..21d621240 100644
--- a/.github/workflows/tests-windows.yml
+++ b/.github/workflows/tests-windows.yml
@@ -1,5 +1,10 @@
name: Windows
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
+ - '[0-9]+.[0-9]+'
+ pull_request:
concurrency:
group: ${{github.workflow}}-${{ github.ref }}