forked from modin-project/modin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX-modin-project#1867: establish CI (modin-project#1868)
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
- Loading branch information
Showing
10 changed files
with
410 additions
and
157 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,202 @@ | ||
name: master | ||
on: push | ||
jobs: | ||
prepare-cache: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest"] | ||
python-version: ["3.6", "3.7", "3.8"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Cache pip if Ubuntu | ||
if: startsWith(runner.os, 'Linux') | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ github.run_id }}-${{ hashFiles('environment.yml') }} | ||
- name: Cache pip if Windows | ||
if: startsWith(runner.os, 'Windows') | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~\AppData\Local\pip\Cache | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ github.run_id }}-${{ hashFiles('environment.yml') }} | ||
- uses: goanpeca/setup-miniconda@v1.6.0 | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
channel-priority: strict | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
auto-update-conda: true | ||
- shell: bash -l {0} | ||
run: pip install ray==0.8.6 | ||
- name: Conda environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
test-all: | ||
needs: prepare-cache | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6.x", "3.7.x"] | ||
python-version: ["3.6", "3.7", "3.8"] | ||
engine: ["python", "ray", "dask"] | ||
part: ["Reduction_A", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3] | ||
env: | ||
MODIN_ENGINE: ${{matrix.engine}} | ||
MODIN_MEMORY: 1000000000 | ||
name: test (${{matrix.engine}}, part ${{matrix.part}}, python ${{matrix.python-version}}) | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-python@v1 | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ github.run_id }}-${{ hashFiles('environment.yml') }} | ||
- uses: goanpeca/setup-miniconda@v1.6.0 | ||
with: | ||
activate-environment: modin | ||
environment-file: environment.yml | ||
python-version: ${{matrix.python-version}} | ||
architecture: "x64" | ||
channel-priority: strict | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
- name: Conda environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- name: Install HDF5 | ||
if: matrix.part == 3 | ||
run: sudo apt update && sudo apt install -y libhdf5-dev | ||
- run: pip install -r requirements.txt | ||
- run: bash run-tests.sh ${{matrix.engine}} -k "TestDataFrame${{matrix.part}}" | ||
- shell: bash -l {0} | ||
run: pytest modin/pandas/test/ -k "TestDataFrame${{matrix.part}}" | ||
if: matrix.part != 3 | ||
- run: python -m pytest modin/pandas/test/test_series.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_series.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_rolling.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_rolling.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_concat.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_concat.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_groupby.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_groupby.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_reshape.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_reshape.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_general.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_general.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_io.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_io.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/experimental/pandas/test/test_io_exp.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/experimental/pandas/test/test_io_exp.py | ||
if: matrix.part == 3 | ||
- run: bash <(curl -s https://codecov.io/bash) | ||
- shell: bash -l {0} | ||
run: bash <(curl -s https://codecov.io/bash) | ||
|
||
test-windows: | ||
needs: prepare-cache | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6.x", "3.7.x"] | ||
python-version: ["3.6", "3.7", "3.8"] | ||
engine: ["ray", "dask"] | ||
part: ["Reduction_A", "Reduction_B", "Binary", "MapMetadata", "UDF", "Default", "Window", "Indexing", "Iter", "JoinSort", 3] | ||
env: | ||
MODIN_ENGINE: ${{matrix.engine}} | ||
MODIN_MEMORY: 1000000000 | ||
name: test-windows | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-python@v1 | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~\AppData\Local\pip\Cache | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ github.run_id }}-${{ hashFiles('environment.yml') }} | ||
- uses: goanpeca/setup-miniconda@v1.6.0 | ||
with: | ||
activate-environment: modin | ||
environment-file: environment.yml | ||
python-version: ${{matrix.python-version}} | ||
architecture: "x64" | ||
- run: pip install -r requirements.txt | ||
- run: python -m pytest modin/pandas/test/test_dataframe.py::TestDataFrame${{matrix.part}} | ||
channel-priority: strict | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
auto-update-conda: true | ||
- name: Conda environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- shell: bash -l {0} | ||
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 | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_series.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_rolling.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_rolling.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_concat.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_concat.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_groupby.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_groupby.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_reshape.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_reshape.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_general.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_general.py | ||
if: matrix.part == 3 | ||
- run: python -m pytest modin/pandas/test/test_io.py | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_io.py | ||
if: matrix.part == 3 | ||
- run: choco install codecov | ||
- run: codecov -f .\coverage.xml -t ${{secrets.CODECOV_TOKEN}} | ||
- shell: bash -l {0} | ||
run: choco install codecov | ||
- shell: bash -l {0} | ||
run: codecov -f ./coverage.xml | ||
|
||
test-pyarrow: | ||
needs: prepare-cache | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6.x", "3.7.x"] | ||
python-version: ["3.6", "3.7", "3.8"] | ||
env: | ||
MODIN_BACKEND: pyarrow | ||
MODIN_EXPERIMENTAL: "True" | ||
name: test (pyarrow, python ${{matrix.python-version}}) | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-python@v1 | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pip-${{ github.run_id }}-${{ hashFiles('environment.yml') }} | ||
- uses: goanpeca/setup-miniconda@v1.6.0 | ||
with: | ||
activate-environment: modin | ||
environment-file: environment.yml | ||
python-version: ${{matrix.python-version}} | ||
architecture: "x64" | ||
channel-priority: strict | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
- name: Conda environment | ||
shell: bash -l {0} | ||
run: | | ||
conda info | ||
conda list | ||
- run: sudo apt update && sudo apt install -y libhdf5-dev | ||
- run: pip install -r requirements.txt | ||
- run: python -m pytest modin/pandas/test/test_io.py::test_from_csv | ||
- shell: bash -l {0} | ||
run: python -m pytest modin/pandas/test/test_io.py::test_from_csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: modin | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- pandas==1.0.5 | ||
- numpy | ||
- pyarrow<0.17 | ||
- dask[complete]>=2.1.0,<=2.19.0 | ||
- distributed>=2.3.2,<=2.19.0 | ||
- xarray | ||
- Jinja2 | ||
- pathlib | ||
- scipy | ||
- pip | ||
- s3fs | ||
- feather-format | ||
- lxml | ||
- openpyxl | ||
- xlrd | ||
- matplotlib<=3.2.2 | ||
- sqlalchemy | ||
- pandas-gbq | ||
- pytables | ||
- msgpack-python | ||
- psutil | ||
- pytest | ||
- pytest-cov | ||
- pytest-xdist | ||
- coverage<5.0 | ||
- pip: | ||
- ray==0.8.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.