-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (49 loc) · 1.5 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on: [push]
jobs:
test_create_sample_data:
name: "Test create sample data "
runs-on: ubuntu-latest
steps:
- name: Clone sample data repo
uses: actions/checkout@v3
- name: Clone Dataverse repo
uses: actions/checkout@v3
with:
repository: IQSS/dataverse
path: dataverse
ref: develop
- name: Start containers
run: |
docker compose -f docker-compose-ci.yml --env-file .env.ci up -d
docker ps
- uses: emilioschepis/[email protected]
with:
url: http://localhost:8080/api/info/version
timeout: 120000
interval: 10000
- name: Run final setup script
run: |
cd dataverse
bash scripts/dev/docker-final-setup.sh
cd ..
- name: Test container
run: |
curl localhost:8080/api/metadatablocks
#- name: List files in the repository
# run: |
# ls -laR ${{ env.RUNNER_TEMP }}
- name: Create sample data
run: |
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp dvconfig.py.sample dvconfig.py
source export-api-token.sh
python create_sample_data.py
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
- name: Stop containers
if: always()
run: docker compose -f docker-compose-ci.yml --env-file .env.ci down