Skip to content

Commit 9986e8e

Browse files
committed
Test latest env
1 parent a61d3c4 commit 9986e8e

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
name: pyjanitor tests
1+
name: unit tests
22

33
on: [pull_request]
44

55
jobs:
66
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 }}
139

1410
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
1511
defaults:
1612
run:
1713
shell: bash -l {0}
1814

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+
1931
steps:
2032
- name: Checkout repository
2133
uses: actions/checkout@v2
@@ -26,16 +38,17 @@ jobs:
2638
with:
2739
auto-update-conda: true
2840
miniforge-variant: Mambaforge
29-
channels: conda-forge
30-
activate-environment: pyjanitor-dev
31-
environment-file: environment-dev.yml
41+
environment-file: ${{ matrix.env }}
3242
use-mamba: true
3343

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"
3952

4053
# https://github.com/codecov/codecov-action
4154
- name: Upload code coverage

0 commit comments

Comments
 (0)