Skip to content

Commit 510366e

Browse files
Add '.github/workflows/manual.yml'
1 parent 0976a60 commit 510366e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/manual.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 }}

0 commit comments

Comments
 (0)