diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 1e34f783..adc24e9f 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -28,13 +28,12 @@ jobs: - name: install the latest version uv uses: astral-sh/setup-uv@v5 with: + python-version: '3.10' version: latest enable-cache: true - - name: create virtual environment - run: uv venv --python '3.10' - - name: install pre-commit - run: uv pip install pre-commit + prune-cache: false + cache-dependency-glob: "**/pyproject.toml" - name: install pre-commit hooks - run: uv run pre-commit install + run: uv run --all-extras pre-commit install - name: Run pre-commit hooks - run: uv run pre-commit run --all-files + run: uv run --all-extras pre-commit run --all-files \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6361a998..bab4759d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,12 +28,11 @@ jobs: - name: install the latest version uv uses: astral-sh/setup-uv@v5 with: + python-version: ${{ matrix.python-version }} version: latest enable-cache: true - - name: create venv - run: uv venv --python ${{ matrix.python-version }} - - name: install dependencies - run: uv pip install -e ".[dev]" + prune-cache: false + cache-dependency-glob: "**/pyproject.toml" - name: run tests - run: uv run pytest -m "" # Run all markers + run: uv run --all-extras pytest -m "" # Run all markers