Skip to content

CI: Combined the doctests checks #41039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 25 additions & 78 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,84 +106,31 @@ fi
### DOCTESTS ###
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then

# Individual files

MSG='Doctests accessor.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/accessor.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests aggregation.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/aggregation.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests base.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/base.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests construction.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/construction.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests frame.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/frame.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests generic.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/generic.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests series.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/series.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests strings.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/strings/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests sql.py' ; echo $MSG
pytest -q --doctest-modules pandas/io/sql.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

# Directories

MSG='Doctests arrays'; echo $MSG
pytest -q --doctest-modules pandas/core/arrays/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests computation' ; echo $MSG
pytest -q --doctest-modules pandas/core/computation/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests dtypes'; echo $MSG
pytest -q --doctest-modules pandas/core/dtypes/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests groupby' ; echo $MSG
pytest -q --doctest-modules pandas/core/groupby/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests indexes' ; echo $MSG
pytest -q --doctest-modules pandas/core/indexes/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests ops' ; echo $MSG
pytest -q --doctest-modules pandas/core/ops/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests reshape' ; echo $MSG
pytest -q --doctest-modules pandas/core/reshape/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests tools' ; echo $MSG
pytest -q --doctest-modules pandas/core/tools/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests window' ; echo $MSG
pytest -q --doctest-modules pandas/core/window/
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests tseries' ; echo $MSG
pytest -q --doctest-modules pandas/tseries/
MSG='Doctests for individual files' ; echo $MSG
pytest -q --doctest-modules \
pandas/core/accessor.py \
pandas/core/aggregation.py \
pandas/core/base.py \
pandas/core/construction.py \
pandas/core/frame.py \
pandas/core/generic.py \
pandas/core/series.py \
pandas/io/sql.py
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests for directories' ; echo $MSG
pytest -q --doctest-modules \
pandas/core/arrays/ \
pandas/core/computation/ \
pandas/core/dtypes/ \
pandas/core/groupby/ \
pandas/core/indexes/ \
pandas/core/ops/ \
pandas/core/reshape/ \
pandas/core/strings/ \
pandas/core/tools/ \
pandas/core/window/ \
pandas/tseries/
RET=$(($RET + $?)) ; echo $MSG "DONE"

fi
Expand Down