Skip to content
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

Make test_dataframe.py more granular with test suite #966

Merged
Show file tree
Hide file tree
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
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
matrix:
python-version: ["3.6.x", "3.7.x"]
engine: ["python", "ray", "dask"]
part: [1, 2, 3]
part: ["Reduction_A::test_all", "Reduction_A::test_any", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3]
env:
MODIN_ENGINE: ${{matrix.engine}}
name: test (${{matrix.engine}}, part ${{matrix.part}}, python ${{matrix.python-version}})
Expand All @@ -51,10 +51,8 @@ jobs:
- run: mv testmondata_${{matrix.engine}} .testmondata
- run: sudo apt install -y libhdf5-dev
- run: pip install -U -r requirements.txt
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartOne
if: matrix.part == 1
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartTwo
if: matrix.part == 2
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDataFrame${{matrix.part}}
if: matrix.part != 3
- run: python -m pytest modin/pandas/test/test_series.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_concat.py
Expand All @@ -75,10 +73,10 @@ jobs:
strategy:
matrix:
python-version: ["3.6.x", "3.7.x"]
part: [1, 2, 3]
part: ["Reduction_A::test_all", "Reduction_A::test_any", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3]
env:
MODIN_ENGINE: dask
name: test dask
name: test-windows
steps:
- uses: actions/checkout@v1
with:
Expand All @@ -91,10 +89,8 @@ jobs:
- run: aws s3 cp --no-sign-request s3://modin-testing/testmondata_dask .
- run: mv testmondata_dask .testmondata
- run: pip install -U -r windows_test_requires.txt
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartOne
if: matrix.part == 1
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartTwo
if: matrix.part == 2
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDataFrame${{matrix.part}}
if: matrix.part != 3
- run: python -m pytest modin/pandas/test/test_series.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_concat.py
Expand Down
34 changes: 23 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
strategy:
matrix:
python-version: ["3.6.x", "3.7.x"]
engine: ["python", "ray"]
part: [1, 2, 3]
engine: ["python", "ray", "dask"]
part: ["Reduction_A::test_all", "Reduction_A::test_any", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3]
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
PYTEST_ADDOPTS: "--cov-config=.coveragerc --cov=modin --cov-append"
Expand All @@ -125,10 +125,8 @@ jobs:
architecture: "x64"
- run: sudo apt install -y libhdf5-dev
- run: pip install -r requirements.txt
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartOne
if: matrix.part == 1
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDFPartTwo
if: matrix.part == 2
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDataFrame${{matrix.part}}
if: matrix.part != 3
- run: python -m pytest modin/pandas/test/test_series.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_concat.py
Expand All @@ -149,10 +147,10 @@ jobs:
strategy:
matrix:
python-version: ["3.6.x", "3.7.x"]
part: ["Reduction_A::test_all", "Reduction_A::test_any", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3]
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
MODIN_ENGINE: dask
name: test dask
name: test-windows
steps:
- uses: actions/checkout@v1
with:
Expand All @@ -161,10 +159,24 @@ jobs:
with:
python-version: ${{matrix.python-version}}
architecture: "x64"
- run: pip install -r windows_test_requires.txt
- run: pip install -U awscli
- run: aws s3 cp --no-sign-request s3://modin-testing/testmondata_dask .
- run: mv testmondata_dask .testmondata
- run: pip install -U -r windows_test_requires.txt
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDataFrame${{matrix.part}}
if: matrix.part != 3
- run: python -m pytest modin/pandas/test/test_series.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_concat.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_groupby.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_reshape.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_general.py
if: matrix.part == 3
- run: python -m pytest modin/pandas/test/test_io.py
- run: choco install codecov
- run: codecov -f .\coverage.xml -t ${{secrets.CODECOV_TOKEN}}
if: matrix.part == 3
test-pyarrow:
runs-on: ubuntu-latest
strategy:
Expand Down
Loading