Merge branch 'main' into SplitRfsPhasesIntoSeparateGradleProjects #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Console Library Tests | |
on: | |
push: | |
paths: | |
- 'TrafficCapture/dockerSolution/src/main/docker/migrationConsole/**' | |
pull_request: | |
paths: | |
- 'TrafficCapture/dockerSolution/src/main/docker/migrationConsole/**' | |
jobs: | |
console-library-tests: | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ./TrafficCapture/dockerSolution/src/main/docker/migrationConsole/lib/console_link | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies for Console Library and Tests | |
run: | | |
python -m pip install . -r ./tests/requirements.txt | |
- name: Run Tests | |
run: | | |
python -m coverage run -m pytest | |
- name: Generate XML Coverage Report | |
run: | | |
python -m coverage xml | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml |