11name : NetExec Tests
22
33on :
4+ workflow_dispatch :
45 pull_request_review :
56 types : [submitted]
67
78jobs :
89 build :
9- name : NetExec Tests for Py${{ matrix.python-version }}
10+ name : Test for Py${{ matrix.python-version }}
11+ if : github.event.review.state == 'APPROVED'
1012 runs-on : ${{ matrix.os }}
1113 strategy :
1214 max-parallel : 5
1315 matrix :
1416 os : [ubuntu-latest]
15- python-version : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
17+ python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
1618 steps :
17- - uses : actions/checkout@v3
18- - name : NetExec set up python on ${{ matrix.os }}
19- uses : actions/setup-python@v4
20- with :
21- python-version : ${{ matrix.python-version }}
22- - name : Install poetry
23- run : |
24- pipx install poetry --python python${{ matrix.python-version }}
25- poetry --version
26- poetry env info
27- - name : Install libraries with dev group
28- run : |
29- poetry install --with dev
30- - name : Run the e2e test
31- run : |
32- poetry run pytest tests
19+ - uses : actions/checkout@v3
20+ - name : Install poetry
21+ run : |
22+ pipx install poetry
23+ - name : NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ cache : poetry
28+ cache-dependency-path : poetry.lock
29+ - name : Install poetry
30+ run : |
31+ pipx install poetry --python python${{ matrix.python-version }}
32+ poetry --version
33+ poetry env info
34+ - name : Install libraries with dev group
35+ run : |
36+ poetry install --with dev
37+ - name : Load every protocol and module
38+ run : |
39+ poetry run netexec winrm 127.0.0.1
40+ poetry run netexec vnc 127.0.0.1
41+ poetry run netexec smb 127.0.0.1
42+ poetry run netexec ldap 127.0.0.1
43+ poetry run netexec wmi 127.0.0.1
44+ poetry run netexec rdp 127.0.0.1
45+ poetry run netexec mssql 127.0.0.1
46+ poetry run netexec ssh 127.0.0.1
47+ poetry run netexec ftp 127.0.0.1
48+ poetry run netexec smb 127.0.0.1 -M veeam
0 commit comments