bumping setup version #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, 3.12] | |
services: | |
neo4j: | |
image: neo4j:5.22.0 | |
env: | |
NEO4J_AUTH: none | |
NEO4JLABS_PLUGINS: '["apoc"]' | |
ports: | |
- '7474:7474' | |
- '7687:7687' | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest pytest-cov codecov neo4j==5.22.0 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Set up Neo4j data | |
run: | | |
python tests/initialize_db.py "${GITHUB_SHA}" | |
- name: Run pytest | |
run: | | |
export PYTHONPATH=$(pwd) | |
pytest --cov=reasoner_transpiler --cov-report=xml tests/ | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.xml | |
env_vars: OS,PYTHON |