Skip to content

Commit

Permalink
use uv in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex committed Apr 15, 2024
1 parent 60d2829 commit e0b9ed0
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,30 @@ jobs:

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[lint]
python -m pip install --upgrade uv
uv venv .venv
source .venv/bin/activate
uv pip install .[lint]
- name: Run Black
run: black --check .
run: |
source .venv/bin/activate
black --check .
- name: Run isort
run: isort --check-only .
run: |
source .venv/bin/activate
isort --check-only .
- name: Run flake8
run: flake8 .
run: |
source .venv/bin/activate
flake8 .
- name: Run mdformat
run: mdformat . --check
run: |
source .venv/bin/activate
mdformat . --check
type-check:
runs-on: ubuntu-latest
Expand All @@ -51,11 +61,15 @@ jobs:

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[lint,test]
python -m pip install --upgrade uv
uv venv .venv
source .venv/bin/activate
uv pip install .[lint,test]
- name: Run MyPy
run: mypy .
run: |
source .venv/bin/activate
mypy .
functional:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -90,12 +104,15 @@ jobs:

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip uninstall eth-ape --yes
pip install .[test]
python -m pip install --upgrade uv
uv venv .venv
source .venv/bin/activate
uv pip install .[test]
- name: Run Tests
run: pytest -m "not fuzzing" -s --cov=src -n auto --dist loadgroup
run: |
source .venv/bin/activate
pytest -m "not fuzzing" -s --cov=src -n auto --dist loadgroup
fuzzing:
runs-on: ubuntu-latest
Expand All @@ -113,8 +130,12 @@ jobs:

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
python -m pip install --upgrade uv
uv venv .venv
source .venv/bin/activate
uv pip install --pre .[test]
- name: Run Tests
run: pytest -m "fuzzing" --no-cov -s
run: |
source .venv/bin/activate
pytest -m "fuzzing" --no-cov -s

0 comments on commit e0b9ed0

Please sign in to comment.