Skip to content

Commit 4e71057

Browse files
committed
Fix nmap installation in GitHub Actions workflow
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Anon23261/NetworkScanner?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent a3d9792 commit 4e71057

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
python -m pip install --upgrade pip
3636
python -m pip install flake8 pytest
3737
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
38+
- name: Install nmap
39+
run: sudo apt-get install -y nmap
3840

3941
lint:
4042
runs-on: ubuntu-latest
@@ -49,6 +51,8 @@ jobs:
4951
uses: actions/setup-python@v3
5052
with:
5153
python-version: ${{ matrix.python-version }}
54+
- name: Install nmap
55+
run: sudo apt-get install -y nmap
5256
- name: Lint with flake8
5357
run: |
5458
# stop the build if there are Python syntax errors or undefined names
@@ -69,6 +73,8 @@ jobs:
6973
uses: actions/setup-python@v3
7074
with:
7175
python-version: ${{ matrix.python-version }}
76+
- name: Install nmap
77+
run: sudo apt-get install -y nmap
7278
- name: Test with pytest
7379
run: |
7480
pytest

0 commit comments

Comments
 (0)