[Snyk] Upgrade commons-cli:commons-cli from 1.8.0 to 1.9.0 #51
Workflow file for this run
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
name: Python CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | |
neo4j-version: [ "4.4", "5" ] | |
spark-version: | |
- {short: "3", ext: "3.1.3", scala: "2.12"} | |
- {short: "3", ext: "3.2.4", scala: "2.12"} | |
- {short: "3", ext: "3.2.4", scala: "2.13"} | |
- {short: "3", ext: "3.3.2", scala: "2.12"} | |
- {short: "3", ext: "3.3.2", scala: "2.13"} | |
- {short: "3", ext: "3.4.1", scala: "2.12"} | |
- {short: "3", ext: "3.4.1", scala: "2.13"} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- uses: avides/[email protected] | |
id: version | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
file-to-check: pom.xml | |
only-return-version: true | |
- name: Cache Maven packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pypandoc six tzlocal==2.1 | |
pip install pyspark==${{ matrix.spark-version.ext }} "testcontainers[neo4j]" | |
- name: Build artifact | |
env: | |
CI: true | |
run: | | |
mvn clean package -Pspark-${{ matrix.spark-version.short }} -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) | |
python3 ./test/_util_test.py | |
python3 ./test/connector_test.py "${{ steps.version.outputs.version }}" "${{ matrix.neo4j-version }}" |