mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-30 22:19:17 +02: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 }}
|
DOCKER_IMAGE: ${{ matrix.docker_image }}
|
||||||
run: |
|
run: |
|
||||||
cd python/meterpreter
|
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
|
- name: Set up Python on host
|
||||||
if: ${{ !matrix.docker_image }}
|
if: ${{ !matrix.docker_image }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.runtime_version }}
|
python-version: ${{ matrix.runtime_version }}
|
||||||
|
|
||||||
|
- name: Install dependencies on host
|
||||||
|
if: ${{ !matrix.docker_image }}
|
||||||
|
run: |
|
||||||
|
pip install mock requests
|
||||||
|
|
||||||
- name: Run tests on host
|
- name: Run tests on host
|
||||||
if: ${{ !matrix.docker_image }}
|
if: ${{ !matrix.docker_image }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user