Skip to content

Commit eced641

Browse files
Zeroto521ericmjl
andauthored
[INF] Extract docstrings tests from all tests and set the independent job (#1205)
* set independent job for installing pyjanitor * set independent job for running docstrings tests * Update CHANGELOG.md Co-authored-by: Eric Ma <[email protected]>
1 parent e1c119b commit eced641

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ jobs:
3737
auto-update-conda: true
3838
miniforge-variant: Mambaforge
3939
channels: conda-forge
40-
activate-environment: pyjanitor-dev
4140
environment-file: environment-dev.yml
4241
use-mamba: true
4342

43+
- name: Install pyjanitor
44+
run: python -m pip install -e .
45+
46+
- name: Run docstrings tests
47+
run: pytest -v -r a -n auto --color=yes --durations=0 --cov=janitor --cov-append --cov-report term-missing --cov-report xml --doctest-only janitor
48+
4449
- name: Run unit tests
45-
run: |
46-
conda activate pyjanitor-dev
47-
python -m pip install -e .
48-
pytest -v -r a -n auto --color=yes --durations=0 --cov=janitor --cov-append --cov-report term-missing --cov-report xml --doctest-modules --doctest-glob="janitor/*.py" --ignore-glob="nbconvert_config.py" tests -m "${{ matrix.test-subset }}"
50+
run: pytest -v -r a -n auto --color=yes --durations=0 --cov=janitor --cov-append --cov-report term-missing --cov-report xml tests -m "${{ matrix.test-subset }}"
4951

5052
# https://github.com/codecov/codecov-action
5153
- name: Upload code coverage

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased]
44

55
- [INF] Replace `pytest.ini` file with `pyproject.toml` file. PR #1204 @Zeroto521
6+
- [INF] Extract docstrings tests from all tests. PR #1205 @Zeroto521
67

78
## [v0.24.0] - 2022-11-12
89

environment-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies:
4444
- pytest
4545
- pytest-cov
4646
- pytest-xdist
47+
- pytest-doctestplus
4748
- python-language-server
4849
- rdkit=2021.09.3
4950
- recommonmark

0 commit comments

Comments
 (0)