@@ -13,40 +13,46 @@ jobs:
13
13
strategy :
14
14
max-parallel : 16
15
15
matrix :
16
- python-version : [ ' 3.6', ' 3.7' ]
17
- os : [ ubuntu-latest, macos-latest ]
16
+ python-version : [" 3.6", " 3.7", "3.5" ]
17
+ os : [ubuntu-latest, macos-latest]
18
18
steps :
19
- - name : Checkout
20
- uses : actions/checkout@v2
21
- with :
22
- ref : ${{ github.event.pull_request.head.sha }}
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+ with :
22
+ ref : ${{ github.event.pull_request.head.sha }}
23
23
24
- - name : Setup Python env
25
- uses : actions/setup-python@v1
26
- with :
27
- python-version : ${{ matrix.python-version }}
28
- architecture : x64
24
+ - name : Setup Python env
25
+ uses : actions/setup-python@v1
26
+ with :
27
+ python-version : ${{ matrix.python-version }}
28
+ architecture : x64
29
29
30
- - name : Install dependencies
31
- run : |
32
- python -m pip install --upgrade pip
33
- pip install -r requirements-test.txt -r requirements.txt
30
+ - name : Install dependencies
31
+ run : |
32
+ python -m pip install --upgrade pip
33
+ pip install -r requirements-test.txt -r requirements.txt
34
34
35
- - name : Lint Tests
36
- run : |
37
- # Check Black code style compliance
38
- black ./ --skip-string-normalization --check
39
- # Check PEP-8 compliance
40
- flake8
35
+ - name : Lint Tests
36
+ # Black does not support Python3.5
37
+ # It will run on 3.6+, so we can
38
+ # safely disable it for 3.5 env
39
+ if : matrix.python-version != '3.5'
40
+ run : |
41
+ # Install black only for Py3.6+
42
+ pip install black==19.10b0
43
+ # Check Black code style compliance
44
+ black ./ --skip-string-normalization --check
45
+ # Check PEP-8 compliance
46
+ flake8
41
47
42
- - name : Unit Tests
43
- run : |
44
- pytest --cov=cromwell_tools --cov-report=xml cromwell_tools/tests
48
+ - name : Unit Tests
49
+ run : |
50
+ pytest --cov=cromwell_tools --cov-report=xml cromwell_tools/tests
45
51
46
- - name : Upload coverage to Codecov
47
- uses : codecov/codecov-action@v1
48
- with :
49
- token : ${{ secrets.CODECOV_TOKEN }}
50
- flags : unittests
51
- name : Cromwell-tools Test Coverage
52
- fail_ci_if_error : false # See https://github.com/codecov/codecov-action/issues/29
52
+ - name : Upload coverage to Codecov
53
+ uses : codecov/codecov-action@v1
54
+ with :
55
+ token : ${{ secrets.CODECOV_TOKEN }}
56
+ flags : unittests
57
+ name : Cromwell-tools Test Coverage
58
+ fail_ci_if_error : false # See https://github.com/codecov/codecov-action/issues/29
0 commit comments