From c4b90fdae450cf0031f3475fef42691835b33dc2 Mon Sep 17 00:00:00 2001 From: ohachimOs Date: Thu, 25 Jul 2024 17:29:59 +0100 Subject: [PATCH] Updates pip to uv. --- .github/workflows/pytest.yml | 11 +++++++---- .github/workflows/typing_checker.yaml | 13 ++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 4a80b54..059d0b0 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -26,11 +26,14 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies. + - name: Install UV run: | python -m pip install --upgrade pip - python -m pip install -r requirement.txt - python -m pip install -r tests/test-requirement.txt + python -m pip install uv + - name: Install dependencies. + run: | + python -m uv pip install -r requirement.txt + python -m uv pip install -r tests/test-requirement.txt - name: Runnning tests with pytest. run: | set -o pipefail @@ -40,4 +43,4 @@ jobs: with: verbose: true token: ${{ secrets.CODECOV_TOKEN }} - file: coverage.xml + file: coverage.xml \ No newline at end of file diff --git a/.github/workflows/typing_checker.yaml b/.github/workflows/typing_checker.yaml index 4526132..647b550 100644 --- a/.github/workflows/typing_checker.yaml +++ b/.github/workflows/typing_checker.yaml @@ -18,15 +18,14 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - cache: 'pip' - cache-dependency-path: | - **/requirement.txt - **/test-requirement.txt - - name: Install dependencies. + - name: Install UV run: | python -m pip install --upgrade pip - python -m pip install -r requirement.txt - python -m pip install -r tests/test-requirement.txt + python -m pip install uv + - name: Install dependencies. + run: | + python -m uv pip install -r requirement.txt + python -m uv pip install -r tests/test-requirement.txt - name: Running static types checker. run: | mypy \ No newline at end of file