From 24dd7fef5293a46916fcb992d8d60e86a47fe1aa Mon Sep 17 00:00:00 2001 From: monosans Date: Wed, 21 Aug 2024 11:06:02 +0300 Subject: [PATCH] Use uv instead of pipx --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/update-dependencies.yml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31d7791..62d66ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: pipx run pre-commit run --all-files + - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - run: uv tool run pre-commit run --all-files build: strategy: matrix: @@ -30,7 +31,8 @@ jobs: runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v4 - - run: pipx install poetry + - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - run: uv tool install poetry - uses: actions/setup-python@v5 with: python-version: "3.12" diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index fec5157..fadb4eb 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: include: - - cmd: pipx run poetry lock --no-interaction + - cmd: curl -LsSf https://astral.sh/uv/install.sh | sh && uv tool run poetry lock --no-interaction commit-msg: Update poetry.lock branch: update/poetry-lock - - cmd: pipx run pre-commit autoupdate + - cmd: curl -LsSf https://astral.sh/uv/install.sh | sh && uv tool run pre-commit autoupdate commit-msg: Update .pre-commit-config.yaml branch: update/pre-commit-config fail-fast: false