From 79da429bd68a38b1f62557400e1a25ee6efdbb50 Mon Sep 17 00:00:00 2001 From: Andrea Santurbano Date: Tue, 25 Jul 2023 10:31:44 +0200 Subject: [PATCH] Update python-ci.yml --- .github/workflows/ci.yml | 10 ++--- .github/workflows/python-ci.yml | 9 ++--- README.md | 9 +---- pom.xml | 66 ++++----------------------------- 4 files changed, 16 insertions(+), 78 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ca07ba..2b2e8c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,27 +14,23 @@ jobs: strategy: fail-fast: false matrix: - scala-version: [2.11, 2.12, 2.12] - spark-version: ["2.4", "3"] - neo4j-version: ["3.5", "4.0", "4.1", "4.2", "4.3", "4.4"] + scala-version: [2.12, 2.13] + spark-version: ["3"] + neo4j-version: ["4.4", "5"] name: Build with Scala ${{ matrix.scala-version }}, Spark ${{ matrix.spark-version }} and Neo4j ${{ matrix.neo4j-version }} steps: - uses: actions/checkout@v2 - if: ${{ !(matrix.spark-version == 3 && matrix.scala-version == 2.11) && !(matrix.spark-version == 2.4 && matrix.scala-version == 2.13) }} - name: Set up JDK 8 - if: ${{ !(matrix.spark-version == 3 && matrix.scala-version == 2.11) && !(matrix.spark-version == 2.4 && matrix.scala-version == 2.13) }} uses: actions/setup-java@v1 with: java-version: 1.8 - name: Cache Maven packages - if: ${{ !(matrix.spark-version == 3 && matrix.scala-version == 2.11) && !(matrix.spark-version == 2.4 && matrix.scala-version == 2.13) }} uses: actions/cache@v1 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Build with Maven - if: ${{ !(matrix.spark-version == 3 && matrix.scala-version == 2.11) && !(matrix.spark-version == 2.4 && matrix.scala-version == 2.13) }} env: CI: true MY_ENV: "MY_ENV_value" diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index c91e0c4..5fb2d4f 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -13,9 +13,9 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.6", "3.7", "3.8" ] - neo4j-version: [ "3.5", "4.0", "4.1", "4.2", "4.3", "4.4" ] - spark-version: [ {short: "3", ext: "3.0.1", scala: "2.12"}, {short: "3", ext: "3.1.1", scala: "2.12"}, {short: "3", ext: "3.2.0", scala: "2.12"} ] + python-version: [ "3.7", "3.8" ] + neo4j-version: [ "4.4", "5" ] + spark-version: [ {short: "3", ext: "3.3.2", scala: "2.12"} ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -47,9 +47,8 @@ jobs: env: CI: true run: | - mvn clean package -Pspark-${{ matrix.spark-version.short }} -Pscala-${{ matrix.spark-version.scala }} -DskipTests --no-transfer-progress + mvn clean package -Pscala-${{ matrix.spark-version.scala }} -DskipTests --no-transfer-progress - name: Run tests for Spark ${{ matrix.spark-version.ext }} and Neo4j ${{ matrix.neo4j-version }} - if: ${{ !(matrix.spark-version.short == 2.4 && matrix.python-version == 3.8) && !(matrix.spark-version.ext == '3.2.0' && matrix.python-version == 3.5) }} run: | cd ./python export PYTHONPATH=$(pwd) diff --git a/README.md b/README.md index befd79c..1990986 100644 --- a/README.md +++ b/README.md @@ -592,24 +592,17 @@ connector.run() We support: -* Spark 2.4 with Scala 2.11 and 2.12 * Spark 3.x with Scala 2.12 and 2.13 # Maven resolution -It depends on the Spark and Scala version: -* For Spark 2.4 with Scala 2.11 and 2.12 the package resolution is `org.neo4j:neo4j-dwh-connector_:_for_spark_2.4` -* For Spark 3.x with Scala 2.12 and 2.13 the package resolution is `org.neo4j:neo4j-dwh-connector_:_for_spark_3` +For Spark 3.x with Scala 2.12 and 2.13 the package resolution is `org.neo4j:neo4j-dwh-connector_:_for_spark_3` # Build it locally In order to build it locally you can use the following commands -For scala 2.11 and Spark 2.4 `./maven-release.sh package 2.11 2.4` - -For scala 2.12 and Spark 2.4 `./maven-release.sh package 2.12 2.4` - For scala 2.12 and Spark 3 `./maven-release.sh package 2.12 3` For scala 2.13 and Spark 3 `./maven-release.sh package 2.13 3` diff --git a/pom.xml b/pom.xml index 19394ab..c46606f 100644 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,11 @@ 4.10 1.5.0 + 3.3.2 + 5.0.3_for_spark_3 + 2.0.9 - 1.15.3 + 1.18.3 0.23.2 2.10.0-spark_3.2 3.13.15 @@ -238,7 +241,6 @@ 2.12.13 2.12 - @@ -259,38 +261,14 @@ - - scala-2.11 - - 2.11.12 - 2.11 - - - - spark-3 - - 3.2.1 - 4.1.2_for_spark_3 - - - - spark-2.4 - - 2.4.8 - 4.1.2_for_spark_2.4 - 1.0.2 - 2.9.3-spark_2.4 - spark-mssql-connector - - - neo4j-4.0 + neo4j-4.4 - 4.0.11 + 4.4.23 false @@ -298,37 +276,9 @@ - neo4j-3.5 - - 3.5.22 - false - - - - neo4j-4.1 - - 4.1.6 - false - - - - neo4j-4.2 - - 4.2.3 - false - - - - neo4j-4.3 - - 4.3.0 - false - - - - neo4j-4.4 + neo4j-5 - 4.4.4 + 5.10.0 false