File tree Expand file tree Collapse file tree 1 file changed +28
-15
lines changed Expand file tree Collapse file tree 1 file changed +28
-15
lines changed Original file line number Diff line number Diff line change 1
- name : pyjanitor tests
1
+ name : unit tests
2
2
3
3
on : [pull_request]
4
4
5
5
jobs :
6
6
run-tests :
7
- strategy :
8
- fail-fast : false
9
- matrix :
10
- test-subset : ["turtle", "not turtle"]
11
- runs-on : ubuntu-latest
12
- name : Run pyjanitor test suite
7
+ name : ${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.env }}
8
+ runs-on : ${{ matrix.os }}
13
9
14
10
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
15
11
defaults :
16
12
run :
17
13
shell : bash -l {0}
18
14
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ os :
19
+ - ubuntu-latest
20
+ - macos-latest
21
+ - windows-latest
22
+ dev : [false]
23
+ python-version :
24
+ - " 3.6"
25
+ - " 3.7"
26
+ - " 3.8"
27
+ - " 3.9"
28
+ - " 3.10"
29
+ env : [ci/envs/latest.yaml]
30
+
19
31
steps :
20
32
- name : Checkout repository
21
33
uses : actions/checkout@v2
@@ -26,16 +38,17 @@ jobs:
26
38
with :
27
39
auto-update-conda : true
28
40
miniforge-variant : Mambaforge
29
- channels : conda-forge
30
- activate-environment : pyjanitor-dev
31
- environment-file : environment-dev.yml
41
+ environment-file : ${{ matrix.env }}
32
42
use-mamba : true
33
43
34
- - name : Run unit tests
35
- run : |
36
- conda activate pyjanitor-dev
37
- python -m pip install -e .
38
- pytest -m "${{ matrix.test-subset }}"
44
+ - name : Install PyJanitor
45
+ - run : python -m pip install -e .
46
+
47
+ - name : Run not turtle unit tests
48
+ run : pytest -m "not turtle"
49
+
50
+ - name : Run turtle unit tests
51
+ run : pytest -m "turtle"
39
52
40
53
# https://github.com/codecov/codecov-action
41
54
- name : Upload code coverage
You can’t perform that action at this time.
0 commit comments