Merge pull request #108 from ecolabdata/fix/auth-wo-token #195
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: 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/ |