-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (71 loc) · 2.33 KB
/
run_test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: run all tests
on:
workflow_dispatch:
jobs:
run-all-test-dev-install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ 3.9 ]
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Config github user
run: |
git config --global user.email "[email protected]"
git config --global user.name "BambooUser-IDM"
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install requirements.txt
run: |
pip install -r requirements_2018.txt --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple
- name: Install from source
run: |
pip install -e .
- name: install test dependencies
run: |
pip3 install unittest-xml-reporting pytest
- name: Install idm-test package
run: |
pip install idm-test>=0.1.2 --extra-index-url https://packages.idmod.org/api/pypi/pypi-production/simple
- name: Login to comps2
run: |
python ./.dev_scripts/create_auth_token_args.py --username "${{ secrets.COMPS_USER }}" --password "${{ secrets.COMPS_PASSWORD }}"
- name: run unittests
run: |
cd tests/unittests
py.test -sv --junitxml=reports/test_results.xml
- name: Upload unittest result to artifactory
if: failure()
uses: actions/upload-artifact@v3
with:
name: unittest_results
path: |
**/test_results.xml
- name: run workflow tests
run: |
cd tests/workflow_tests
py.test -sv --junitxml=reports/test_results.xml
- name: Upload workflow tests results to artifactory
if: failure()
uses: actions/upload-artifact@v3
with:
name: workflow_results
path: |
**/test_results.xml
- name: run sft tests
run: |
cd tests/sft_tests
python run_all_sft_tests.py
- name: Upload workflow tests results to artifactory
if: failure()
uses: actions/upload-artifact@v3
with:
name: sft_results
path: |
**/test_results.xml