Skip to content

Commit

Permalink
Updates pip to uv.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohachimOs committed Jul 25, 2024
1 parent 8c5820c commit ccaf648
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -51,4 +54,4 @@ jobs:
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
file: coverage.xml
13 changes: 6 additions & 7 deletions .github/workflows/typing_checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ccaf648

Please sign in to comment.