-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (47 loc) · 1.63 KB
/
main.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
name: Main
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ["3.10"]
JOBLIB_VERSION: ["1.2.0", "1.3.0"]
PIN_MODE: [false, true]
PYSPARK_VERSION: ["3.0.3", "3.1.3", "3.2.3", "3.3.2", "3.4.0"]
include:
- PYSPARK_VERSION: "3.5.1"
PYTHON_VERSION: "3.11"
JOBLIB_VERSION: "1.3.0"
- PYSPARK_VERSION: "3.5.1"
PYTHON_VERSION: "3.11"
JOBLIB_VERSION: "1.4.2"
- PYSPARK_VERSION: "3.5.1"
PYTHON_VERSION: "3.12"
JOBLIB_VERSION: "1.3.0"
- PYSPARK_VERSION: "3.5.1"
PYTHON_VERSION: "3.12"
JOBLIB_VERSION: "1.4.2"
exclude:
- PYSPARK_VERSION: "3.0.3"
PIN_MODE: true
- PYSPARK_VERSION: "3.1.3"
PIN_MODE: true
name: Run test on pyspark ${{ matrix.PYSPARK_VERSION }}, pin_mode ${{ matrix.PIN_MODE }}, python ${{ matrix.PYTHON_VERSION }}, joblib ${{ matrix.JOBLIB_VERSION }}
steps:
- uses: actions/checkout@v3
- name: Setup python ${{ matrix.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.PYTHON_VERSION }}
architecture: x64
- name: Install python packages
run: |
pip install joblib==${{ matrix.JOBLIB_VERSION }} scikit-learn>=0.23.1 pytest pylint pyspark==${{ matrix.PYSPARK_VERSION }}
- name: Run pylint
run: |
./run-pylint.sh
- name: Run test suites
run: |
PYSPARK_PIN_THREAD=${{ matrix.PIN_MODE }} ./run-tests.sh