Skip to content

Commit 57edccc

Browse files
committed
use uv for tests in ci
1 parent e9587f8 commit 57edccc

File tree

3 files changed

+18
-60
lines changed

3 files changed

+18
-60
lines changed

.github/workflows/code-quality.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ jobs:
1212
ubuntu:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- name: Clone repository
16+
uses: actions/checkout@v5
1617

17-
- name: Build River
18-
uses: ./.github/actions/install-env
19-
with:
20-
python-version: "3.13"
21-
build-root: false
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
21+
- name: Install dependencies
22+
run: uv sync --locked --all-extras --dev
2223

23-
- name: MyPy type check
24-
run: poetry run mypy
24+
- name: Run tests
25+
run: uv run pytest
2526

26-
- name: Ruff code linting
27-
run: poetry run ruff check --output-format=github river/
27+
- name: Install pre-commit
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.cache/pre-commit/
31+
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
2832

29-
- name: Ruff code formatting
30-
run: poetry run ruff format --check river/
33+
- name: Run pre-commit
34+
run: uv run pre-commit run --all-files

.github/workflows/delete-caches.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Clear all Github Actions caches
1+
name: delete-github-action-caches
2+
23
on:
34
workflow_dispatch:
45
schedule:

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)