Skip to content

[Console] Update format of services.yaml (#718) #2

[Console] Update format of services.yaml (#718)

[Console] Update format of services.yaml (#718) #2

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