1
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:
0xriasaat 2024-12-01 01:25:22 +06:00 committed by GitHub
parent 5569fc4331
commit 42b0fbc35a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 }}