Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jul 7, 2024
1 parent 2868ccf commit ce005bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,18 @@ jobs:
run: cmake --build "$BUILD_DIR" -j

- name: Test PcapPlusPlus
shell: bash
run: |
bash # need to run bash to activate venv
${{ matrix.python }} -m venv ./venv
source ./venv/bin/activate
${{ matrix.python }} -m pip install pip
${{ matrix.python }} -m pip install -r ci/run_tests/requirements.txt
${{ matrix.python }} ci/run_tests/run_tests.py --interface eth0 ${{ matrix.test-flags }}
- name: Test Examples
shell: bash
run: |
source ./venv/bin/activate
cd Tests/ExamplesTest
${{ matrix.python }} -m pip install -r requirements.txt
${{ matrix.python }} -m pytest --interface eth0 --root-path=../../Dist/examples_bin
Expand All @@ -141,7 +143,9 @@ jobs:
run: cd build_examples/tutorials_bin && ./Tutorial-HelloWorld

- name: Create Cobertura Report
shell: bash
run: |
source ./venv/bin/activate
${{ matrix.python }} -m pip install gcovr
gcovr -v -r . ${{ matrix.additional-gcov-flags }} $GCOVR_FLAGS -o coverage.xml
Expand Down

0 comments on commit ce005bd

Please sign in to comment.