-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (51 loc) · 1.56 KB
/
Copy pathmain.yml
File metadata and controls
67 lines (51 loc) · 1.56 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Integration Test
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Verification framework and all dependencies
run: uv sync --locked --all-extras --dev
- name: Run unit tests
run: uv run pytest tests
integration-tests:
needs: unit-tests
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
with:
version: latest
- name: Start Flight Blender and dependencies
run: docker compose --env-file .env.tests -f docker-compose.fb.yml up -d --wait
working-directory: ./tests
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Verification framework and all dependencies
run: uv sync --locked --all-extras --dev
- name: Run tests
run: uv run openutm-verify --debug --config config/pull_request.yaml
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports
path: reports/
- name: Stop containers
if: always()
run: docker compose --env-file .env.tests -f docker-compose.fb.yml down
working-directory: ./tests