Add All Commands to CI Regression #341
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request_review: | |
types: [submitted] | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
Regression: | |
if: | | |
( | |
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || | |
(github.event_name == 'pull_request' && | |
(github.event.pull_request.user.login == 'nivcertora' || | |
github.event.pull_request.user.login == 'liav-certora') | |
) | |
) && | |
github.event.pull_request.base.ref == 'main' | |
env: | |
ETHSCAN_API_KEY: ${{ secrets.ETHSCAN_API_KEY }} | |
QUORUM_PATH: "Quorum/tests" | |
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
runs-on: ubuntu-latest | |
container: | |
image: public.ecr.aws/certora/cvt-image:2024.10.23-4499-c4f8ad4 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Quorum Repo | |
run: pip3.11 install . | |
- name: Run unit tests | |
run: pytest Quorum/tests --maxfail=1 --disable-warnings --tb=short | |
- name: Run Quorum setup | |
run: Quorum setup --working_dir workdir | |
- name: Init working directory | |
run: | | |
mv Quorum/tests/regression.json workdir/Quorum/tests/regression.json | |
mv Quorum/tests/ground_truth.json workdir/Quorum/tests/ground_truth.json | |
echo "ETHSCAN_API_KEY=${ETHSCAN_API_KEY}" >> workdir/.env | |
echo "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}" >> workdir/.env | |
cd workdir | |
- name: Execute Regression Tests | |
run: | | |
pwd | |
Quorum validate-address --customer Aave --chain Ethereum --proposal_address 0xAD6c03BF78A3Ee799b86De5aCE32Bb116eD24637 | |
Quorum validate-batch --config Quorum/tests/regression.json | |
Quorum validate-by-id --proposal_id 137 --customer Aave | |
quorum validate-ipfs --proposal_id 20 --chain Scroll --proposal_address 0x2B25cb729D90630395Cd3140f3460a73A41Fe5f0 | |
Quorum create-report --proposal_id 137 |