mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
Update python.yml
fixed error for no module named
This commit is contained in:
parent
5569fc4331
commit
42b0fbc35a
7
.github/workflows/python.yml
vendored
7
.github/workflows/python.yml
vendored
@ -60,13 +60,18 @@ jobs:
|
||||
DOCKER_IMAGE: ${{ matrix.docker_image }}
|
||||
run: |
|
||||
cd python/meterpreter
|
||||
docker run --rm -w $(pwd) -v $(pwd):$(pwd) ${DOCKER_IMAGE} /bin/sh -c 'ls -lah; pip install mock; python -m unittest discover -v ./tests'
|
||||
docker run --rm -w $(pwd) -v $(pwd):$(pwd) ${DOCKER_IMAGE} /bin/sh -c 'ls -lah; pip install mock requests; python -m unittest discover -v ./tests'
|
||||
|
||||
- name: Set up Python on host
|
||||
if: ${{ !matrix.docker_image }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.runtime_version }}
|
||||
|
||||
- name: Install dependencies on host
|
||||
if: ${{ !matrix.docker_image }}
|
||||
run: |
|
||||
pip install mock requests
|
||||
|
||||
- name: Run tests on host
|
||||
if: ${{ !matrix.docker_image }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user