From 0a1fc761f8562b8ff2d9b23d1e4a9b86587e84f8 Mon Sep 17 00:00:00 2001 From: dorimedini-starkware Date: Thu, 25 Jul 2024 15:23:57 +0300 Subject: [PATCH] chore: extract merge paths test to separate job (#78) Signed-off-by: Dori Medini --- .github/workflows/blockifier_ci.yml | 12 -------- .github/workflows/merge_paths_ci.yml | 41 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/merge_paths_ci.yml diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index f10d3c0487..f5a994f2fd 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -32,18 +32,6 @@ jobs: - run: cargo build -p blockifier - run: cargo test -p blockifier - run-python-tests: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.9' - - run: | - python -m pip install --upgrade pip - pip install pytest - - run: pytest scripts/merge_paths_test.py - native-blockifier-artifacts-push: runs-on: ubuntu-20.04 steps: diff --git a/.github/workflows/merge_paths_ci.yml b/.github/workflows/merge_paths_ci.yml new file mode 100644 index 0000000000..8db9363de8 --- /dev/null +++ b/.github/workflows/merge_paths_ci.yml @@ -0,0 +1,41 @@ +name: Merge-paths test + +on: + push: + branches: + - main + - main-v[0-9].** + tags: + - v[0-9].** + paths: + - '.github/workflows/merge_paths_ci.yml' + - 'scripts/merge_branches.json' + - 'scripts/merge_paths.json' + - 'scripts/merge_paths_test.py' + - 'scripts/merge_status.py' + + pull_request: + types: + - opened + - reopened + - synchronize + - auto_merge_enabled + - edited + paths: + - '.github/workflows/merge_paths_ci.yml' + - 'scripts/merge_branches.json' + - 'scripts/merge_paths.json' + - 'scripts/merge_paths_test.py' + - 'scripts/merge_status.py' + + merge-paths-test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.9' + - run: | + python -m pip install --upgrade pip + pip install pytest + - run: pytest scripts/merge_paths_test.py