Replace package manager + add dev env #261
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: | ||
requires: Linter | ||
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 Dependencies via Poetry | ||
run: | | ||
pip install poetry | ||
poetry install | ||
- name: Run Linter | ||
run: poetry run flake8 Quorum/ | ||
- name: Execute Regression Tests | ||
run: | | ||
poetry run pytest Quorum/tests --maxfail=1 --disable-warnings --tb=short | ||
poetry run CheckProposal --config Quorum/tests/regression.json |