forked from modin-project/modin
-
Notifications
You must be signed in to change notification settings - Fork 0
151 lines (149 loc) · 6.04 KB
/
push-to-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: push-to-master
on:
push:
branches:
- master
concurrency:
# Cancel other jobs in the same branch. We don't care whether CI passes
# on old commits.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
env:
MODIN_GITHUB_CI: true
jobs:
test-ray-master:
runs-on: ubuntu-latest
defaults:
run:
# `shell: bash -l {0}` - special way to activate modin environment
shell: bash -l {0}
services:
moto:
image: motoserver/moto
ports:
- 5000:5000
env:
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/mamba-env
with:
environment-file: environment-dev.yml
- name: install Ray nightly build
# Use --force-reinstall to always reinstall ray and its dependencies.
# botocore isn't compatible with urllib3>=2; see #6094 for details
run: pip install --force-reinstall "urllib3<2" https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl
- name: Conda environment
run: |
conda info
conda list
- run: sudo apt update && sudo apt install -y libhdf5-dev
- name: Run Modin tests
run: |
python -m pytest modin/pandas/test/dataframe/test_binary.py
python -m pytest modin/pandas/test/dataframe/test_default.py
python -m pytest modin/pandas/test/dataframe/test_indexing.py
python -m pytest modin/pandas/test/dataframe/test_iter.py
python -m pytest modin/pandas/test/dataframe/test_join_sort.py
python -m pytest modin/pandas/test/dataframe/test_map_metadata.py
python -m pytest modin/pandas/test/dataframe/test_reduce.py
python -m pytest modin/pandas/test/dataframe/test_udf.py
python -m pytest modin/pandas/test/dataframe/test_window.py
python -m pytest modin/pandas/test/test_series.py
python -m pytest modin/numpy/test/test_array.py
python -m pytest modin/numpy/test/test_array_creation.py
python -m pytest modin/numpy/test/test_array_arithmetic.py
python -m pytest modin/numpy/test/test_array_axis_functions.py
python -m pytest modin/numpy/test/test_array_logic.py
python -m pytest modin/numpy/test/test_array_linalg.py
python -m pytest modin/numpy/test/test_array_indexing.py
python -m pytest modin/numpy/test/test_array_math.py
python -m pytest modin/numpy/test/test_array_shaping.py
python -m pytest modin/pandas/test/test_rolling.py
python -m pytest modin/pandas/test/test_expanding.py
python -m pytest modin/pandas/test/test_concat.py
python -m pytest modin/pandas/test/test_groupby.py
python -m pytest modin/pandas/test/test_reshape.py
python -m pytest modin/pandas/test/test_general.py
python -m pytest modin/pandas/test/test_io.py
python -m pytest modin/experimental/pandas/test/test_io_exp.py
test-docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
name: test docs
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/mamba-env
with:
environment-file: environment-dev.yml
- run: sudo apt update && sudo apt install -y libhdf5-dev
- name: Docstring URL validity check
run: python -m pytest modin/test/test_docstring_urls.py
test-ray-client:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
services:
moto:
image: motoserver/moto
ports:
- 5000:5000
env:
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
strategy:
matrix:
python-version: ["3.8"]
test-task:
- modin/pandas/test/dataframe/test_binary.py
- modin/pandas/test/dataframe/test_default.py
- modin/pandas/test/dataframe/test_indexing.py
- modin/pandas/test/dataframe/test_iter.py
- modin/pandas/test/dataframe/test_join_sort.py
- modin/pandas/test/dataframe/test_map_metadata.py
- modin/pandas/test/dataframe/test_reduce.py
- modin/pandas/test/dataframe/test_udf.py
- modin/pandas/test/dataframe/test_window.py
- modin/pandas/test/dataframe/test_pickle.py
- modin/pandas/test/test_series.py
- modin/numpy/test/test_array.py
- modin/numpy/test/test_array_creation.py
- modin/numpy/test/test_array_arithmetic.py
- modin/numpy/test/test_array_axis_functions.py
- modin/numpy/test/test_array_logic.py
- modin/numpy/test/test_array_linalg.py
- modin/numpy/test/test_array_indexing.py
- modin/numpy/test/test_array_math.py
- modin/numpy/test/test_array_shaping.py
- modin/pandas/test/test_rolling.py
- modin/pandas/test/test_expanding.py
- modin/pandas/test/test_concat.py
- modin/pandas/test/test_groupby.py
- modin/pandas/test/test_reshape.py
- modin/pandas/test/test_general.py
- modin/pandas/test/test_io.py
env:
MODIN_ENGINE: ray
MODIN_MEMORY: 1000000000
MODIN_TEST_RAY_CLIENT: "True"
name: "test-ray-client"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: modin
python-version: ${{matrix.python-version}}
channel-priority: strict
# we set use-only-tar-bz2 to false in order for conda to properly find new packages to be installed
# for more info see https://github.com/conda-incubator/setup-miniconda/issues/264
use-only-tar-bz2: false
- run: pip install -r requirements-dev.txt
- name: Install HDF5
run: sudo apt update && sudo apt install -y libhdf5-dev
- run: python -m pytest ${{matrix.test-task}}