4646 container : " python:${{ matrix.python-version }}-slim"
4747 strategy :
4848 matrix :
49- python-version : ['3.6.15', '3.10']
49+ python-version : [ '3.6.15', '3.10' ]
5050
5151 steps :
5252 - name : Checkout code
7070 build-essential \
7171 git \
7272 curl \
73+ && apt-get clean \
7374 && rm -rf /var/lib/apt/lists/*
7475
7576 - name : Verify Java and Maven installation
@@ -88,66 +89,82 @@ jobs:
8889 - name : Install Python dependencies
8990 shell : bash
9091 run : |
92+ df -h
9193 if [[ "${{ matrix.python-version }}" == "3.6.15" ]]; then
9294 python -m pip install --upgrade pip==21.3.1
9395 python --version
94- python -m pip install -q pyroaring readerwriterlock==1.0.9 'fsspec==2021.10.1' 'cachetools==4.2.4' 'ossfs==2021.8.0' pyarrow==6.0.1 pandas==1.1.5 'polars==0.9.12' 'fastavro==1.4.7' zstandard==0.19.0 dataclasses==0.8.0 flake8 pytest py4j==0.10.9.9 requests parameterized==0.8.1 2>&1 >/dev/null
96+ python -m pip install --no-cache-dir pyroaring readerwriterlock==1.0.9 'fsspec==2021.10.1' 'cachetools==4.2.4' 'ossfs==2021.8.0' pyarrow==6.0.1 pandas==1.1.5 'polars==0.9.12' 'fastavro==1.4.7' zstandard==0.19.0 dataclasses==0.8.0 flake8 pytest py4j==0.10.9.9 requests parameterized==0.8.1 2>&1 >/dev/null
9597 else
9698 python -m pip install --upgrade pip
97- python -m pip install -q pyroaring readerwriterlock==1.0.9 fsspec==2024.3.1 cachetools==5.3.3 ossfs==2023.12.0 ray==2.48.0 fastavro==1.11.1 pyarrow==16.0.0 zstandard==0.24.0 polars==1.32.0 duckdb==1.3.2 numpy==1.24.3 pandas==2.0.3 pylance==0.39.0 flake8==4.0.1 pytest~=7.0 py4j==0.10.9.9 requests parameterized==0.9.0 2>&1 >/dev/null
99+ pip install torch --index-url https://download.pytorch.org/whl/cpu
100+ python -m pip install pyroaring readerwriterlock==1.0.9 fsspec==2024.3.1 cachetools==5.3.3 ossfs==2023.12.0 ray==2.48.0 fastavro==1.11.1 pyarrow==16.0.0 zstandard==0.24.0 polars==1.32.0 duckdb==1.3.2 numpy==1.24.3 pandas==2.0.3 pylance==0.39.0 flake8==4.0.1 pytest~=7.0 py4j==0.10.9.9 requests parameterized==0.9.0
98101 fi
102+ df -h
99103 - name : Run lint-python.sh
100104 shell : bash
101105 run : |
102106 chmod +x paimon-python/dev/lint-python.sh
103- ./paimon-python/dev/lint-python.sh
107+ ./paimon-python/dev/lint-python.sh -e pytest_torch
104108
105- requirement_version_compatible_test :
109+ torch_test :
106110 runs-on : ubuntu-latest
107111 container : " python:3.10-slim"
108112
109113 steps :
110114 - name : Checkout code
111115 uses : actions/checkout@v2
112116
113- - name : Set up JDK ${{ env.JDK_VERSION }}
114- uses : actions/setup-java@v4
115- with :
116- java-version : ${{ env.JDK_VERSION }}
117- distribution : ' temurin'
118-
119- - name : Set up Maven
120- 121- with :
122- maven-version : 3.8.8
123-
124117 - name : Install system dependencies
125118 shell : bash
126119 run : |
127120 apt-get update && apt-get install -y \
128121 build-essential \
129122 git \
130123 curl \
124+ && apt-get clean \
131125 && rm -rf /var/lib/apt/lists/*
132126
133- - name : Verify Java and Maven installation
134- run : |
135- java -version
136- mvn -version
137-
138127 - name : Verify Python version
139128 run : python --version
140129
141- - name : Build Java
130+ - name : Install Python dependencies
131+ shell : bash
142132 run : |
143- echo "Start compiling modules"
144- mvn -T 2C -B clean install -DskipTests
133+ python -m pip install --upgrade pip
134+ pip install torch --index-url https://download.pytorch.org/whl/cpu
135+ python -m pip install pyroaring readerwriterlock==1.0.9 fsspec==2024.3.1 cachetools==5.3.3 ossfs==2023.12.0 ray==2.48.0 fastavro==1.11.1 pyarrow==16.0.0 zstandard==0.24.0 polars==1.32.0 duckdb==1.3.2 numpy==1.24.3 pandas==2.0.3 pylance==0.39.0 flake8==4.0.1 pytest~=7.0 py4j==0.10.9.9 requests parameterized==0.9.0
136+ - name : Run lint-python.sh
137+ shell : bash
138+ run : |
139+ chmod +x paimon-python/dev/lint-python.sh
140+ ./paimon-python/dev/lint-python.sh -i pytest_torch
141+
142+ requirement_version_compatible_test :
143+ runs-on : ubuntu-latest
144+ container : " python:3.10-slim"
145+
146+ steps :
147+ - name : Checkout code
148+ uses : actions/checkout@v2
149+
150+ - name : Install system dependencies
151+ shell : bash
152+ run : |
153+ apt-get update && apt-get install -y \
154+ build-essential \
155+ git \
156+ curl \
157+ && rm -rf /var/lib/apt/lists/*
158+
159+ - name : Verify Python version
160+ run : python --version
145161
146162 - name : Install base Python dependencies
147163 shell : bash
148164 run : |
149165 python -m pip install --upgrade pip
150- python -m pip install -q \
166+ pip install torch --index-url https://download.pytorch.org/whl/cpu
167+ python -m pip install --no-cache-dir \
151168 pyroaring \
152169 readerwriterlock==1.0.9 \
153170 fsspec==2024.3.1 \
@@ -165,36 +182,37 @@ jobs:
165182 requests \
166183 parameterized==0.9.0 \
167184 packaging
185+
168186
169187 - name : Test requirement version compatibility
170188 shell : bash
171189 run : |
172190 cd paimon-python
173-
191+
174192 # Test Ray version compatibility
175193 echo "=========================================="
176194 echo "Testing Ray version compatibility"
177195 echo "=========================================="
178196 for ray_version in 2.44.0 2.48.0 2.53.0; do
179197 echo "Testing Ray version: $ray_version"
180-
198+
181199 # Install specific Ray version
182- python -m pip install -q ray==$ray_version
183-
200+ python -m pip install --no-cache-dir - q ray==$ray_version
201+
184202 # Verify Ray version
185203 python -c "import ray; print(f'Ray version: {ray.__version__}')"
186204 python -c "from packaging.version import parse; import ray; assert parse(ray.__version__) == parse('$ray_version'), f'Expected Ray $ray_version, got {ray.__version__}'"
187-
205+
188206 # Run tests
189207 python -m pytest pypaimon/tests/ray_data_test.py::RayDataTest -v --tb=short || {
190208 echo "Tests failed for Ray $ray_version"
191209 exit 1
192210 }
193-
211+
194212 # Uninstall Ray to avoid conflicts
195213 python -m pip uninstall -y ray
196214 done
197-
215+
198216 # Add other dependency version tests here in the future
199217 # Example:
200218 # echo "=========================================="
0 commit comments