Skip to content

Tests

Tests #183

Workflow file for this run

name: Tests
on:
push:
branches:
- github
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 1'
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
defaults:
run:
shell: bash -el {0}
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: 'Setup Neo4j with APOC'
uses: mdanics/Setup-Neo4j@1.0.0
- name: 'Deploying miniconda'
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
environment-file: recipes/workflow.yaml
python-version: ${{ matrix.python-version }}
channel-priority: true
auto-update-conda: true
- name: 'Build conda package'
run: |
conda-build recipes/
- name: 'Run tests'
run: |
pip install --no-deps .
python -m pytest tests
Neo4jefmtool:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- name: 'Set up JDK 17'
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.4
- name: 'Build with maven'
run: |
mvn install:install-file -Dfile=neo4jefmtool/lib/metabolic-efm-all.jar -DgroupId=ch.javasoft -DartifactId=metabolic-efm -Dversion=4.7.1 -Dpackaging=jar
mvn clean package -f neo4jefmtool/pom.xml