-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (37 loc) · 1.06 KB
/
run_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
38
39
40
41
42
43
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
narrative_service_build_and_test:
strategy:
fail-fast: false
matrix:
python: ['3.12']
runs-on: ubuntu-latest
steps:
- name: checkout git repo
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install prerequisites
shell: bash -l {0}
run: |
cat requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install
cat requirements-dev.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip install
- name: Run tests
shell: bash -l {0}
run: |
sh test/run_tests.sh
- name: Send to Codecov
id: send_to_codecov
uses: codecov/codecov-action@v3
continue-on-error: true
with:
files: ./python-coverage/coverage.xml
fail_ci_if_error: true