File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow that is manually triggered
2
+
3
+ name : Scapy unit tests (manual)
4
+
5
+ # Controls when the action will run. Workflow runs when manually triggered using the UI
6
+ # or API.
7
+ on :
8
+ workflow_dispatch :
9
+ # Inputs the workflow accepts.
10
+ inputs :
11
+ # os:
12
+ # description: "OS"
13
+ # required: true
14
+ # default: "ubuntu-latest"
15
+ python :
16
+ description : " Python version"
17
+ required : true
18
+ default : " 3.8"
19
+ mode :
20
+ description : " Root / non-root"
21
+ required : true
22
+ default : " non_root"
23
+ installmode :
24
+ description : " Installation mode"
25
+ required : true
26
+ default : " "
27
+ flags :
28
+ description : " UT flags"
29
+ required : true
30
+ default : " -K scanner"
31
+
32
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
33
+ jobs :
34
+ utscapy :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Checkout Scapy
38
+ uses : actions/checkout@v4
39
+ # Codecov requires a fetch-depth > 1
40
+ with :
41
+ fetch-depth : 2
42
+ - name : Setup Python
43
+ uses : actions/setup-python@v5
44
+ with :
45
+ python-version : ${{ github.event.inputs.python }}
46
+ - name : Install Tox and any other packages
47
+ run : ./.config/ci/install.sh ${{ github.event.inputs.installmode }}
48
+ - name : Run Tox
49
+ run : UT_FLAGS="${{ github.event.inputs.flags }}" ./.config/ci/test.sh ${{ github.event.inputs.python }} ${{ github.event.inputs.mode }}
50
+ # - name: Codecov
51
+ # uses: codecov/codecov-action@v4
52
+ # continue-on-error: true
53
+ # with:
54
+ # token: ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments