Skip to content

build(deps): bump actions/setup-python from 6.3.0 to 7.0.0 #96

build(deps): bump actions/setup-python from 6.3.0 to 7.0.0

build(deps): bump actions/setup-python from 6.3.0 to 7.0.0 #96

Workflow file for this run

name: IAM CI
on:
workflow_call:
push:
paths:
- iam/**
- .github/workflows/iam.yml
pull_request:
paths:
- iam/**
- .github/workflows/iam.yml
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
strategy:
fail-fast: false
matrix:
runner: [curl, java, python, curl-cypher, java-cypher, python-cypher]
env:
ARCADEDB_URL: http://localhost:2480
ARCADEDB_USER: root
ARCADEDB_PASS: arcadedb
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 1
- name: Set up Java
if: matrix.runner == 'java' || matrix.runner == 'java-cypher'
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven repository
if: matrix.runner == 'java' || matrix.runner == 'java-cypher'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.m2
key: ${{ runner.os }}-m2-iam-${{ hashFiles('iam/java/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-iam-
- name: Set up Python
if: matrix.runner == 'python' || matrix.runner == 'python-cypher'
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
- name: Cache pip
if: matrix.runner == 'python'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-iam-${{ hashFiles('iam/python/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-iam-
- name: Cache pip (cypher)
if: matrix.runner == 'python-cypher'
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-iam-cypher-${{ hashFiles('iam/python/requirements-cypher.txt') }}
restore-keys: ${{ runner.os }}-pip-iam-cypher-
- name: Install Python dependencies
if: matrix.runner == 'python'
working-directory: iam/python
run: pip install -r requirements.txt
- name: Install Python dependencies (cypher)
if: matrix.runner == 'python-cypher'
working-directory: iam/python
run: pip install -r requirements-cypher.txt
- name: Start ArcadeDB
working-directory: iam
run: docker compose up -d
- name: Setup database
working-directory: iam
run: ./setup.sh
- name: Run curl queries
if: matrix.runner == 'curl'
working-directory: iam
run: ./queries/queries.sh
- name: Run curl queries (OpenCypher)
if: matrix.runner == 'curl-cypher'
working-directory: iam
run: ./queries/queries-cypher.sh
- name: Build and run Java
if: matrix.runner == 'java'
working-directory: iam/java
run: |
mvn package --no-transfer-progress
java -jar target/iam.jar
- name: Build and run Java (OpenCypher)
if: matrix.runner == 'java-cypher'
working-directory: iam/java
run: |
mvn package --no-transfer-progress
java -cp target/iam.jar com.arcadedb.examples.IamCypher
- name: Run Python queries
if: matrix.runner == 'python'
working-directory: iam/python
run: python iam.py
- name: Run Python queries (OpenCypher)
if: matrix.runner == 'python-cypher'
working-directory: iam/python
run: python iam_cypher.py
- name: Teardown
if: always()
working-directory: iam
run: docker compose down