Skip to content

Commit

Permalink
chore: improve blockifier CI trigger and scope
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware committed Jul 28, 2024
1 parent cd76a9f commit 55af520
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/blockifier_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ on:
tags:
- v[0-9].**
paths:
- '.github/workflows/blockifier_ci.yml'
- 'Cargo.toml'
- 'Cargo.lock'
- 'blockifier.Dockerfile'
- 'build_native_blockifier.sh'
- 'crates/blockifier/**'
- 'crates/native_blockifier/**'
- 'scripts/install_build_tools.sh'
- 'scripts/requirements.txt'

pull_request:
types:
Expand All @@ -18,7 +26,15 @@ on:
- auto_merge_enabled
- edited
paths:
- '.github/workflows/blockifier_ci.yml'
- 'Cargo.toml'
- 'Cargo.lock'
- 'blockifier.Dockerfile'
- 'build_native_blockifier.sh'
- 'crates/blockifier/**'
- 'crates/native_blockifier/**'
- 'scripts/install_build_tools.sh'
- 'scripts/requirements.txt'

jobs:
featureless-build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/blockifier_compiled_cairo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ on:
tags:
- v[0-9].**
paths:
- '.github/workflows/blockifier_compiled_cairo.yml'
- 'crates/blockifier/feature_contracts/cairo0/**'
- 'scripts/requirements.txt'
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- '.github/workflows/blockifier_compiled_cairo.yml'
- 'crates/blockifier/feature_contracts/cairo0/**'
- 'scripts/requirements.txt'

jobs:
verify_cairo_file_dependencies:
Expand All @@ -38,4 +42,4 @@ jobs:

- run:
pip install -r crates/blockifier/tests/requirements.txt;
cargo test verify_feature_contracts -- --include-ignored
cargo test -p blockifier verify_feature_contracts -- --include-ignored
4 changes: 4 additions & 0 deletions .github/workflows/blockifier_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ name: Blockifier-Coverage
on:
pull_request:
paths:
- '.github/workflows/blockifier_coverage.yml'
- 'crates/blockifier/**'
- 'crates/native_blockifier/**'
push:
paths:
- '.github/workflows/blockifier_coverage.yml'
- 'crates/blockifier/**'
- 'crates/native_blockifier/**'

jobs:
coverage:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/blockifier_post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ on:
types:
- closed
paths:
- '.github/workflows/blockifier_post-merge.yml'
- 'crates/blockifier/**'
- 'crates/native_blockifier/**'
- 'scripts/requirements.txt'

jobs:
if_merged:
if: github.event.pull_request.merged == true
Expand All @@ -29,4 +33,4 @@ jobs:

- run: |
pip install -r crates/blockifier/tests/requirements.txt
cargo test -- --include-ignored
cargo test -p blockifier -p native_blockifier -- --include-ignored

0 comments on commit 55af520

Please sign in to comment.