-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.45 KB
/
test2.yml
File metadata and controls
52 lines (42 loc) · 1.45 KB
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
name: Test against dataportal
on: [push, pull_request]
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Checkout fixtures
uses: actions/checkout@v6
with:
repository: actris-cloudnet/dataportal
sparse-checkout: backend/fixtures/
sparse-checkout-cone-mode: false
path: backend-fixtures
- name: Checkout production fixtures
uses: actions/checkout@v6
with:
repository: actris-cloudnet/dataportal-fixtures
path: dataportal-fixtures
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
with:
driver-opts: network=host
- name: Build cloudnet-processing with cache
uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile
target: test
load: true
tags: cloudnet-processing:test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Start supporting services
run: docker compose -f .github/docker-compose.yml up -d --wait dataportal-backend
- name: Run tests
run: docker compose -f .github/docker-compose.yml run --rm cloudnet-processing pytest -s -vv tests/integration/test.py
- name: Shutdown all services
if: always()
run: docker compose -f .github/docker-compose.yml down -v