Skip to content

Commit

Permalink
[CI] Run checks in PRs from forks (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung authored Jul 8, 2024
1 parent e56164f commit 5403a3f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/zeus_fmt_lint_test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: (Zeus) Check format, lint, and test

on:
pull_request:
paths:
- '.github/workflows/zeus_fmt_lint_test.yaml'
- 'zeus/**'
- 'tests/**'
- 'capriccio/*.py'
- 'examples/**'
- 'setup.py'
- 'scripts/lint.sh'
- 'pyproject.toml'
push:
paths:
- '.github/workflows/zeus_fmt_lint_test.yaml'
Expand All @@ -19,6 +29,7 @@ concurrency:

jobs:
format_lint_test:
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/zeusd_fmt_lint_test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: (Zeusd) Check format, lint, and test

on:
pull_request:
paths:
- '.github/workflows/zeusd_fmt_lint_test.yaml'
- 'zeusd/**'
push:
paths:
- '.github/workflows/zeusd_fmt_lint_test.yaml'
Expand All @@ -13,6 +17,7 @@ concurrency:

jobs:
format_lint_test:
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
Expand Down

0 comments on commit 5403a3f

Please sign in to comment.