-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
2,846 additions
and
4,769 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,23 +3,27 @@ name: CI Workflow | |
on: [push] | ||
|
||
jobs: | ||
|
||
# Linting with Pre-commit | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.18" | ||
enable-cache: true # Enables built-in caching for uv | ||
|
||
- name: Setup Python 3.12.6 | ||
- name: Set up Python 3.12.6 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12.6 | ||
|
||
# Run pre-commit hooks (e.g., black, flake8, isort) | ||
- uses: pre-commit/[email protected] | ||
|
||
|
||
# Test runs | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,24 +32,24 @@ jobs: | |
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# install poetry to allow cacheing | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python 3.12.6 | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: 3.12.6 | ||
cache: 'poetry' | ||
version: "0.4.18" | ||
enable-cache: true # Enables built-in caching for uv | ||
|
||
- name: Set up Python 3.12.6 | ||
run: uv python install 3.12.6 | ||
|
||
# Install dependencies with all extras (including dev) | ||
- name: Install Requirements | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
poetry install | ||
run: uv sync --extra=dev | ||
|
||
# Run tests with environment variables | ||
- name: Run Tests | ||
env: | ||
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }} | ||
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | ||
run: | | ||
poetry run pytest -n auto | ||
run: uv run pytest -n auto |
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
Oops, something went wrong.