forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.07 KB
/
python-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: python-tests
on:
push:
paths:
- 'experimental/cluster_migration_core/**.py'
pull_request:
paths:
- 'experimental/cluster_migration_core/**.py'
jobs:
test-linux:
strategy:
matrix:
python-version: ['3.10']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./experimental/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