Skip to content

Commit

Permalink
ci: Don't run CI on draft PRs (twice)
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 2, 2024
1 parent 6993529 commit f68307d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

# Run functional regression checks
name: ci
on: [push, pull_request]
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:

########
Expand All @@ -14,6 +18,7 @@ jobs:
docs:
name: Build documentation
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pulp-platform/snitch_cluster:pyproject
steps:
Expand All @@ -28,6 +33,7 @@ jobs:
pytest:
name: Python unit tests
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pulp-platform/snitch_cluster:pyproject
steps:
Expand All @@ -42,6 +48,7 @@ jobs:
sw-snitch-cluster-vlt:
name: Simulate SW on Snitch Cluster w/ Verilator
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pulp-platform/snitch_cluster:pyproject
steps:
Expand Down Expand Up @@ -76,6 +83,7 @@ jobs:
sw-snitch-cluster-banshee:
name: Simulate SW on Snitch Cluster w/ Banshee
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pulp-platform/snitch_cluster:pyproject
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gitlab-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
gitlab-ci:
name: Internal Gitlab CI
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- name: Check Gitlab CI
uses: pulp-platform/pulp-actions/[email protected]
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
verible-lint:
name: Lint Verilog sources
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: chipsalliance/verible-linter-action@main
Expand All @@ -32,6 +33,7 @@ jobs:
bender-vendor-up-to-date:
name: Check bender vendor up-to-date
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Check bender vendor up-to-date
uses: pulp-platform/pulp-actions/[email protected]
Expand All @@ -42,6 +44,7 @@ jobs:
sources-up-to-date:
name: Check Sources Up-to-Date
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
container:
image: ghcr.io/pulp-platform/snitch_cluster:pyproject
steps:
Expand Down Expand Up @@ -74,6 +77,7 @@ jobs:
license-lint:
name: Check License headers
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Check License
uses: pulp-platform/pulp-actions/[email protected]
Expand All @@ -97,6 +101,7 @@ jobs:
yaml-lint:
name: Lint YAML Sources
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- name: yaml-lint
Expand All @@ -109,6 +114,7 @@ jobs:
########################
python-lint:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
name: Lint Python Sources
steps:
- name: Check out source repository
Expand All @@ -130,6 +136,7 @@ jobs:
clangfmt:
name: Lint C/C++ Sources
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: DoozyX/[email protected]
Expand All @@ -143,6 +150,7 @@ jobs:
editorconfig-lint:
name: Lint Editorconfig
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: editorconfig-checker/action-editorconfig-checker@main
Expand Down

0 comments on commit f68307d

Please sign in to comment.