Skip to content

Commit 1016ecf

Browse files
committed
Add python test to github actions
1 parent 2a6f63f commit 1016ecf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/python-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python - Test
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/python-test.yml'
7+
- 'python/**'
8+
pull_request:
9+
paths:
10+
- '.github/workflows/python-test.yml'
11+
- 'python/**'
12+
13+
jobs:
14+
run-python-tests:
15+
name: Run Python tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install required packages
21+
run: |
22+
sudo add-apt-repository ppa:wireshark-dev/stable
23+
sudo apt update
24+
sudo apt upgrade -y
25+
sudo apt -y install \
26+
tshark \
27+
python3-pytest
28+
29+
- name: Run tests
30+
run: pytest
31+
working-directory: python/test

0 commit comments

Comments
 (0)