Skip to content

Commit

Permalink
ci: use uv more cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Aug 21, 2024
1 parent bfa3654 commit 47a4bef
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- dev

env:
UV_SYSTEM_PYTHON: 1

jobs:

ruff:
Expand All @@ -14,19 +17,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hynek/setup-cached-uv@v1
- run: uv venv
- run: uv pip install ruff
- run: source .venv/bin/activate; ruff check .
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uvx ruff check .

ruff-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hynek/setup-cached-uv@v1
- run: uv venv
- run: uv pip install ruff
- run: source .venv/bin/activate; ruff format .
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uvx ruff format .

test:
runs-on: ubuntu-latest
Expand All @@ -36,15 +35,13 @@ jobs:
test: [scenarios_test.py, rpc_test.py, graph_test.py, logging_test.py]
steps:
- uses: actions/checkout@v4
- uses: hynek/setup-cached-uv@v1
- uses: azure/[email protected]
- uses: medyagh/setup-minikube@master
- name: Run tests
- name: Install uv
run: |
echo Installing warnet python package for cli
uv venv
uv pip install -e .
shell: bash
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install project
run: uv sync --all-extras --dev
- name: Run tests
run: |
source .venv/bin/activate
Expand Down

0 comments on commit 47a4bef

Please sign in to comment.