Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(CI): CI for Gentest #1015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raxhvl
Copy link
Contributor

@raxhvl raxhvl commented Dec 11, 2024

πŸ—’οΈ Description

This PR introduces an end-to-end CI workflow for gentest.

πŸ”— Related Issues

closes #860

βœ… Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

@raxhvl
Copy link
Contributor Author

raxhvl commented Dec 11, 2024

Hey @danceratopz I have added an environment for Gentest in tox. I have added a new config for ROOT_DIR, since the path was not resolving correctly inside tox.

For this to work, we need to populate env.yaml. The entire yaml file can be sourced from a github secret and consumed in a new workflow.

Also, Let me know what t8n tool is available in CI for consuming this test.

name: Run Gentest

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    
    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Set up environment file (env.yaml)
      run: |
        echo "${{ secrets.ENV_YAML }}" >> env.yaml

    - name: Execute end-to-end gentest
      run: |
        uvx --with=tox-uv tox -e gentest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

πŸ§ͺ(gentest): add testing to ci for the gentest cli
1 participant