MIGRATIONS-963 Added CloudWatch Agent to Demo HAProxy Primary (#111) #37
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: python-tests | |
on: [push, pull_request] | |
jobs: | |
test-linux: | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ./cluster_migration_core | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies for Framework and Test Coverage | |
run: | | |
python -m pip install -r requirements.txt coverage pytest-cov | |
- name: Run Tests with Coverage | |
run: | | |
python -m pytest unit_tests/ --cov=cluster_migration_core --cov-report=xml --cov-branch | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v3 | |
with: | |
files: cluster_migration_core/coverage.xml |