Skip to content

fix script

fix script #34

Workflow file for this run

name: Python integration test
# Source: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
on: [ push ]
jobs:
integration_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9" ]
services:
neo4j:
image: neo4j:latest
env:
NEO4J_AUTH: neo4j/${{ secrets.NEO4J_LOCAL_PASSWORD }}
NEO4JLABS_PLUGINS: '["apoc"]'
ports:
- 7474:7474
- 7687:7687
steps:
- uses: jtalk/url-health-check-action@v3
with:
url: http://localhost:7474
max-attempts: 10
retry-delay: 10s
retry-all: true
- 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 ruff pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Create config json
id: create-json
uses: jsdaniell/create-json@v1.2.2
with:
name: "config.json"
json: ${{ secrets.CONFIG_JSON }}
- name: Run integration tests
run: pytest integration_test