From ccaf648f4d8886be974725054f4b2daa35aa4e2f Mon Sep 17 00:00:00 2001 From: ohachimOs Date: Thu, 25 Jul 2024 17:44:59 +0100 Subject: [PATCH] Updates pip to uv. --- .github/workflows/pytest.yml | 13 ++++++++----- .github/workflows/typing_checker.yaml | 13 ++++++------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2759f29..35e05a0 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -36,12 +36,15 @@ jobs: sudo snap install metasploit-framework msfdb init msfrpcd -P Ostorlab123 -p 55555 - - name: Install dependencies. + - name: Install UV run: | python -m pip install --upgrade pip - python -m pip install -e tools/pymetasploit3 - 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 -e tools/pymetasploit3 + python -m uv pip install -r requirement.txt + python -m uv pip install -r tests/test-requirement.txt - name: Running tests with pytest. run: | set -o pipefail @@ -51,4 +54,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