Skip to content

Merge pull request #109 from ecolabdata/feat/geonetwork4 #212

Merge pull request #109 from ecolabdata/feat/geonetwork4

Merge pull request #109 from ecolabdata/feat/geonetwork4 #212

Workflow file for this run

name: Run tests with Geonetwork service
on:
push:
branches: [ main ]
pull_request:
jobs:
run-tests:
runs-on: ubuntu-latest
services:
geonetwork:
image: geonetwork:3.10.4
env:
DATA_DIR: /catalog-data
TZ: Europe/Paris
ports:
- 57455:8080
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Wait for Geonetwork to start
run: |
echo "Waiting for Geonetwork to start..."
timeout 300 bash -c "until curl http://localhost:57455/geonetwork; do sleep 10; done"
- name: Run tests
run: |
pytest tests/