Skip to content

Merge pull request #26 from jkminder/fix-match-iterator #65

Merge pull request #26 from jkminder/fix-match-iterator

Merge pull request #26 from jkminder/fix-match-iterator #65

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests Neo4j 5.2 | 5.13
on:
push:
branches: "*"
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
neo4j-version: ["5.2", "5.13"]
services:
neo4j:
image: neo4j:${{ matrix.neo4j-version }}
env:
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_dbms_connector_bolt_enabled: "true"
apoc.export.file.enabled: "true" # For 5.x
apoc.import.file.enabled: "true" # For 5.x
apoc.import.file.use_neo4j_config: "true" # For 5.x
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"
NEO4J_AUTH: neo4j/password
NEO4J_dbms_connector_bolt_advertised__address: localhost:7687
NEO4JLABS_PLUGINS: '["apoc"]'
options: >-
--health-cmd "cypher-shell -u neo4j -p password 'match (n) return count(n)'"
--health-timeout 10s
--health-retries 30
--health-interval 10s
--health-start-period 30s
ports:
- 7687:7687
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest