-
Couldn't load subscription status.
- Fork 173
[INF] Set multi-test env to compat dependency and system #1143
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
base: dev
Are you sure you want to change the base?
Changes from all commits
b8c9803
a61d3c4
9986e8e
2c38994
f71cefc
5192b90
287ee5b
0cd95e5
5b8a09a
90ce9f0
f236624
b155722
5b75198
18f34e0
263aaa2
3cc6c78
4d26689
4c429e6
b92925a
4b1e2e9
bd99a1a
9330f43
34a415a
f2aec0b
1391751
30cc453
609465b
8079eca
f6bf739
240acbf
208706a
aad0f47
3a157ed
5ee95d6
2405a07
bec7293
d13fb8d
0249ce8
fc4ba6c
ad217f2
5397c1b
6da2269
334cee5
788ad2d
03f4f52
a48292d
e107901
1378f54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: pyjanitor tests | ||
| name: tests | ||
|
|
||
| on: | ||
| push: | ||
|
|
@@ -14,18 +14,28 @@ concurrency: | |
|
|
||
| jobs: | ||
| run-tests: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| test-subset: ["turtle", "not turtle"] | ||
| runs-on: ubuntu-latest | ||
| name: Run pyjanitor test suite | ||
| name: ${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.env }} | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| # https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| - windows-latest | ||
| dev: [false] | ||
| python-version: | ||
| - "3.8" | ||
| - "3.9" | ||
| - "3.10" | ||
| env: [ci/envs/latest.yaml] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
|
|
@@ -36,18 +46,21 @@ jobs: | |
| with: | ||
| auto-update-conda: true | ||
| miniforge-variant: Mambaforge | ||
| channels: conda-forge | ||
| environment-file: environment-dev.yml | ||
| environment-file: ${{ matrix.env }} | ||
| use-mamba: true | ||
|
|
||
| - name: Install pyjanitor | ||
| run: python -m pip install -e . | ||
|
|
||
| - name: Run docstrings tests | ||
| if: ${{ contains(matrix.env, 'latest.yaml') && contains(matrix.os, 'ubuntu') }} | ||
| 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 | ||
|
|
||
| - name: Run unit tests | ||
| 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 }}" | ||
| - name: Run not turtle unit tests | ||
| run: pytest -v -r a -n auto --color=yes --durations=0 --cov=janitor --cov-append --cov-report term-missing --cov-report xml tests -m "not turtle" | ||
|
|
||
| - name: Run turtle unit tests | ||
| run: pytest -v -r a -n auto --color=yes --durations=0 --cov=janitor --cov-append --cov-report term-missing --cov-report xml tests -m "turtle" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Historically we've been able to reduce testing time by running the |
||
|
|
||
| # https://github.com/codecov/codecov-action | ||
| - name: Upload code coverage | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: pyjanitor-test | ||
| channels: | ||
| - conda-forge | ||
| dependencies: | ||
| # required | ||
| - pandas | ||
| - pandas-flavor | ||
| - multipledispatch | ||
| - lazy_loader | ||
| - scipy # math, functions | ||
|
|
||
| # optional | ||
| - natsort # functions | ||
| - numba # functions | ||
| - biopython # biology | ||
| - rdkit # chemistry | ||
| - tqdm # chemistry | ||
| - unyt # engineering | ||
| - requests # finance | ||
| - pyspark>=3.2.2 | ||
| - xarray | ||
| # io | ||
| - openpyxl | ||
| - xlrd | ||
|
|
||
| # testing | ||
| - pytest | ||
| - pytest-cov | ||
| - pytest-xdist | ||
| - pytest-doctestplus | ||
| - hypothesis | ||
| - pandas-vet | ||
| - interrogate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zeroto521 would you recommend also testing on the development environment as defined in
environment-dev.yml?