@@ -11,21 +11,22 @@ jobs:
1111
1212 run-tests :
1313
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 }}
1515 runs-on : ${{ matrix.os }}
1616
1717 strategy :
1818 fail-fast : false
1919 matrix :
2020 os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
2121 python-version : ['3.6', '3.7', '3.8']
22+ r-version : ['3.6.3']
2223
2324 steps :
2425 - uses : actions/checkout@v2
2526 - uses : r-lib/actions/setup-r@v1
2627 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
2930 with :
3031 auto-update-conda : true
3132 python-version : ${{ matrix.python-version }}
4142 run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4243
4344 - 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'
4546 shell : bash -l {0}
4647 run : bash <(curl -s https://codecov.io/bash) -F unit -c
4748
5051 # run: tox -e pytest -- -m integration --cov=./ --cov-report=xml -n auto
5152
5253 # - 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'
5455 # shell: bash -l {0}
5556 # run: bash <(curl -s https://codecov.io/bash) -F integration -c
5657
@@ -59,31 +60,11 @@ jobs:
5960 run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
6061
6162 - 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'
6364 shell : bash -l {0}
6465 run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
6566
6667 - 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'
6869 shell : bash -l {0}
6970 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