From 825458b17f56668eb5394ed3e71d4da34481ad48 Mon Sep 17 00:00:00 2001 From: Steve Schmerler Date: Wed, 24 Apr 2024 23:20:48 +0200 Subject: [PATCH] WIP --- .github/workflows/tests.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3c348ba..e2018d8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,10 +28,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: install deps - run: | - pip install -e ".[test,dask,dev]" - - name: install ruff run: | # Install the ruff version from .pre-commit-config.yaml here. Using @@ -42,9 +38,16 @@ jobs: # [1] https://github.com/dependabot/dependabot-core/issues/1524 ruff_version=$(grep -E -A1 'astral-sh/ruff-pre-commit' \ .pre-commit-config.yaml | sed -nre "s/^\s+rev:.+'v([0-9\.]+)'/\1/p") - [ -n "$ruff_version" ] || echo "error parsing ruff version" && exit 1 + if [ -z "$ruff_version" ]; then + echo "error parsing ruff version, no match" + exit 1 + fi pip install "ruff==$ruff_version" + - name: install deps + run: | + pip install -e ".[test,dask,dev]" + - name: lint run: | # Check for lint rules.