dummy commit to benchmark test time with cache #26
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 Workflow | |
on: [push, pull_request] | |
jobs: | |
# Linting with Pre-commit | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python 3.12.4 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12.4 | |
# Run pre-commit hooks (e.g., black, flake8, isort) | |
- uses: pre-commit/[email protected] | |
# Test runs | |
tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
# install poetry to allow cacheing | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: 'poetry' | |
- name: Install Requirements | |
run: | | |
pip install poetry==1.8.1 | |
poetry config virtualenvs.in-project true | |
poetry install | |
- name: Run Tests | |
env: | |
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
run: | | |
poetry run pytest --numprocesses=auto |