Skip to content

Commit

Permalink
checkout pr latest code in test cli
Browse files Browse the repository at this point in the history
  • Loading branch information
lyfsn committed Aug 6, 2024
1 parent d75aa75 commit f6cc24e
Showing 1 changed file with 48 additions and 8 deletions.
56 changes: 48 additions & 8 deletions .github/workflows/test_run_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,19 @@ jobs:
mkdir -p "${ROOT_DIR}"
cd "${ROOT_DIR}"
git clone -b $BRANCH_GAS_BENCHMARKS https://github.com/OpenFusionist/gas-benchmarks.git gas-benchmarks
git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result
cp ./benchmarks-data-result/images.yaml ./gas-benchmarks/
- name: Checkout PR branch of benchmarks-data-results
uses: actions/checkout@v3
with:
repository: OpenFusionist/benchmarks-data-results
path: benchmarks-data-result
ref: ${{ github.event.pull_request.head.sha }}

- name: Copy images.yaml
run: |
ROOT_DIR=${{ needs.generate-matrix.outputs.root_dir }}
cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/gas-benchmarks/"
- name: Run gas benchmarks
run: |
CLIENT=${{ matrix.client }}
Expand Down Expand Up @@ -175,8 +185,18 @@ jobs:
mkdir -p "${ROOT_DIR}"
cd "${ROOT_DIR}"
git clone -b $BRANCH_GENESIS_INIT_BENCHMARKS https://github.com/OpenFusionist/genesis-init-benchmarks.git genesis-init-benchmarks
git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result
cp ./benchmarks-data-result/images.yaml ./genesis-init-benchmarks/
- name: Checkout PR branch of benchmarks-data-results
uses: actions/checkout@v3
with:
repository: OpenFusionist/benchmarks-data-results
path: benchmarks-data-result
ref: ${{ github.event.pull_request.head.sha }}

- name: Copy images.yaml
run: |
ROOT_DIR=${{ needs.run-gas-benchmarks.outputs.root_dir }}
cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/genesis-init-benchmarks/"
- name: Run genesis init speed benchmarks
run: |
Expand Down Expand Up @@ -227,8 +247,18 @@ jobs:
mkdir -p "${ROOT_DIR}"
cd "${ROOT_DIR}"
git clone -b $BRANCH_GENESIS_INIT_BENCHMARKS https://github.com/OpenFusionist/genesis-init-benchmarks.git genesis-init-benchmarks
git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result
cp ./benchmarks-data-result/images.yaml ./genesis-init-benchmarks/
- name: Checkout PR branch of benchmarks-data-results
uses: actions/checkout@v3
with:
repository: OpenFusionist/benchmarks-data-results
path: benchmarks-data-result
ref: ${{ github.event.pull_request.head.sha }}

- name: Copy images.yaml
run: |
ROOT_DIR=${{ needs.run-genesis-init-speed-benchmarks.outputs.root_dir }}
cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/genesis-init-benchmarks/"
- name: Run genesis init memory benchmarks
run: |
Expand Down Expand Up @@ -279,8 +309,18 @@ jobs:
mkdir -p "${ROOT_DIR}"
cd "${ROOT_DIR}"
git clone -b $BRANCH_BURNTPIX_BENCHMARKS https://github.com/OpenFusionist/gas-benchmarks.git burntpix-benchmarks
git clone -b main https://github.com/OpenFusionist/benchmarks-data-results.git benchmarks-data-result
cp ./benchmarks-data-result/images.yaml ./burntpix-benchmarks/
- name: Checkout PR branch of benchmarks-data-results
uses: actions/checkout@v3
with:
repository: OpenFusionist/benchmarks-data-results
path: benchmarks-data-result
ref: ${{ github.event.pull_request.head.sha }}

- name: Copy images.yaml
run: |
ROOT_DIR=${{ needs.run-genesis-init-memory-benchmarks.outputs.root_dir }}
cp "${GITHUB_WORKSPACE}/benchmarks-data-result/images.yaml" "${ROOT_DIR}/burntpix-benchmarks/"
- name: Run burntpix benchmarks
run: |
Expand Down

0 comments on commit f6cc24e

Please sign in to comment.