forked from next-exp/IC
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.28 KB
/
test_suite.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
# This workflow will install IC and run all the tests with pytest
name: Test suite
on:
push:
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
#platform: [ubuntu-18.04, macos-latest]
platform: [ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Get LFS files
run: git lfs pull
# - name: Fix Conda permissions on macOS
# run: sudo chown -R $UID $CONDA
# if: runner.os == 'macOS'
- name: Install IC
run: |
source $CONDA/etc/profile.d/conda.sh
source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }}
- name: Run tests
run: |
source $CONDA/etc/profile.d/conda.sh
source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }}
PYTEST_ADDOPTS=--color=yes HYPOTHESIS_PROFILE=travis-ci bash manage.sh run_tests_par | tee pytest_output.txt
- name: Warning summary
run: |
./scripts/check_warnings pytest_output.txt
echo "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"
python scripts/check_warnings pytest_output.txt
if [ $? ]; then
echo "::warning ::There are warnings raised in the test suite"
fi