Allow ci/cd to skip draft PRs (#1314)

This commit is contained in:
Josh Bradley 2024-10-23 12:46:00 -04:00 committed by GitHub
parent 77e77775ad
commit 3df6f8c65b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 50 additions and 9 deletions

View File

@ -5,6 +5,11 @@ on:
- "**/main" # Matches branches like feature/main
- "main" # Matches the main branch
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**/main"
- "main"
@ -23,6 +28,8 @@ env:
jobs:
python-ci:
# skip draft PRs
if: github.event.pull_request.draft == false
strategy:
matrix:
python-version: ["3.10", "3.11"] # add 3.12 once gensim supports it. TODO: watch this issue - https://github.com/piskvorky/gensim/issues/3510

View File

@ -5,6 +5,11 @@ on:
- "**/main" # Matches branches like feature/main
- "main" # Matches the main branch
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**/main"
- "main"
@ -23,6 +28,8 @@ env:
jobs:
python-ci:
# skip draft PRs
if: github.event.pull_request.draft == false
strategy:
matrix:
python-version: ["3.10"]

View File

@ -5,6 +5,11 @@ on:
- "**/main" # Matches branches like feature/main
- "main" # Matches the main branch
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**/main"
- "main"
@ -23,6 +28,8 @@ env:
jobs:
python-ci:
# skip draft PRs
if: github.event.pull_request.draft == false
strategy:
matrix:
python-version: ["3.10"]

View File

@ -5,6 +5,11 @@ on:
- "**/main" # Matches branches like feature/main
- "main" # Matches the main branch
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**/main"
- "main"
@ -23,6 +28,8 @@ env:
jobs:
python-ci:
# skip draft PRs
if: github.event.pull_request.draft == false
strategy:
matrix:
python-version: ["3.10"]

View File

@ -1,15 +1,21 @@
name: Semver Check
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches: [main]
jobs:
semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Semver
run: ./scripts/semver-check.sh
semver:
# skip draft PRs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Semver
run: ./scripts/semver-check.sh

View File

@ -3,10 +3,17 @@ on:
push:
branches: [main]
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "**/*"
jobs:
spellcheck:
# skip draft PRs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4