-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 911 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/