Skip to content

Commit

Permalink
Added Neo4J DBMS container and DB tests to workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
lbellmann committed Apr 10, 2024
1 parent e844daa commit 7403d1f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,28 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Trigger unit tests
run: pytest test --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
run: pytest test --run_neo4j_tests=True --neo4j_host=localhost --neo4j_port=7687 --neo4j_user=neo4j --neo4j_pwd=pwd --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}
if: ${{ always() }}

services:
neo4j:
image: neo4j:enterprise
env:
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"
NEO4J_AUTH: "neo4j/pwd"
NEO4J_dbms_connector_bolt_advertised__address: localhost:7687
NEO4JLABS_PLUGINS: '["apoc"]'
options: >-
--health-cmd "cypher-shell 'match (n) return count(n)'"
--health-timeout 10s
--health-retries 20
--health-interval 10s
--health-start-period 30s
ports:
- 7687:7687

0 comments on commit 7403d1f

Please sign in to comment.