-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.35 KB
/
Copy pathrun-pytest.yml
File metadata and controls
53 lines (47 loc) · 1.35 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: SearchAPI pytest suite
permissions:
contents: read
on:
pull_request:
branches:
- test
types:
- opened
- reopened
- synchronize
paths:
- 'src/**.py'
# - 'cdk/**.py'
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r tests/requirements.txt
python -m pip install .
- name: run tests
shell: bash
run: |
pytest -n auto tests/yml_tests/ \
--df bugs --df prod_only --cov \
--reruns 3 --reruns-delay 10 --only-rerun CMR_TIMEOUT \
--cov-branch --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests
name: asf_admin searchAPI-v3 pytest
verbose: true