-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.87 KB
/
tests_neo4j5.yaml
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
48
49
50
51
52
53
54
55
56
57
# 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: [ main ]
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