@@ -11,21 +11,22 @@ jobs:
11
11
12
12
run-tests :
13
13
14
- name : Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
14
+ name : Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} and ${{ matrix.r-version }}
15
15
runs-on : ${{ matrix.os }}
16
16
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
20
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
21
21
python-version : ['3.6', '3.7', '3.8']
22
+ r-version : ['3.6.3']
22
23
23
24
steps :
24
25
- uses : actions/checkout@v2
25
26
- uses : r-lib/actions/setup-r@v1
26
27
with :
27
- r-version : ' 3.6.1 ' # The R version to download (if necessary) and use.
28
- - uses : goanpeca /setup-miniconda@v1
28
+ r-version : ${{ matrix.r- version }}
29
+ - uses : conda-incubator /setup-miniconda@v2
29
30
with :
30
31
auto-update-conda : true
31
32
python-version : ${{ matrix.python-version }}
41
42
run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
42
43
43
44
- name : Upload coverage report for unit tests and doctests.
44
- if : runner.os == 'Linux' && matrix.python-version == '3.8'
45
+ if : runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
45
46
shell : bash -l {0}
46
47
run : bash <(curl -s https://codecov.io/bash) -F unit -c
47
48
50
51
# run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
51
52
52
53
# - name: Upload coverage reports of integration tests.
53
- # if: runner.os == 'Linux' && matrix.python-version == '3.8'
54
+ # if: runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
54
55
# shell: bash -l {0}
55
56
# run: bash <(curl -s https://codecov.io/bash) -F integration -c
56
57
@@ -59,31 +60,11 @@ jobs:
59
60
run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
60
61
61
62
- name : Upload coverage reports of end-to-end tests.
62
- if : runner.os == 'Linux' && matrix.python-version == '3.8'
63
+ if : runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
63
64
shell : bash -l {0}
64
65
run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
65
66
66
67
- name : Validate codecov.yml
67
- if : runner.os == 'Linux' && matrix.python-version == '3.8'
68
+ if : runner.os == 'Linux' && matrix.python-version == '3.8' && matrix.r-version == '3.6.3'
68
69
shell : bash -l {0}
69
70
run : cat codecov.yml | curl --data-binary @- https://codecov.io/validate
70
-
71
-
72
- pre-commit :
73
-
74
- name : Run pre-commit.
75
- runs-on : ubuntu-latest
76
-
77
- steps :
78
- - uses : actions/checkout@v2
79
-
80
- - name : Set up Python 3.8
81
- uses : actions/setup-python@v1
82
- with :
83
- python-version : 3.8
84
-
85
- - name : Install dependencies
86
- run : pip install tox
87
-
88
- - name : Run pre-commit
89
- run : tox -e pre-commit
0 commit comments