-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (62 loc) · 1.91 KB
/
anms-core.yaml
File metadata and controls
63 lines (62 loc) · 1.91 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
name: Test anms-core
on:
push:
paths:
- .github/workflows/anms-core.yaml
- deps/**
- anms-core/**
jobs:
flake8:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip3 install deps/dtnma-ace
pip3 install deps/dtnma-camp
- name: Install flake8
working-directory: anms-core
run: pip3 install -e '.[flake8]'
- name: Run flake8
working-directory: anms-core
run: |
FAIL_SRC=0
flake8 src || FAIL_SRC=$?
anms-core_integration-test:
runs-on: ubuntu-24.04
env:
ANMS_COMPOSE_OPTS: -f docker-compose.yml --profile light
TEST_COMPOSE_OPTS: -f anms-core/integration_test/docker-compose.yml
HOST_SOCKDIR: /run/anms
DOCKER_CMD: docker
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build ANMS
run: ${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} build
- name: Build TEST
run: ${DOCKER_CMD} compose ${TEST_COMPOSE_OPTS} build
- name: Build Volume
run: |
./create_volume.sh ./puppet/modules/apl_test/files/anms/tls
sudo mkdir /run/anms
- name: Start
run: |
${DOCKER_CMD} compose ${TEST_COMPOSE_OPTS} up -d test-transport
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} up -d --force-recreate --wait --wait-timeout 600
- name: Test
run: ${DOCKER_CMD} compose ${TEST_COMPOSE_OPTS} run test-runner
- name: Status
if: failure()
run: |
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} ps
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} logs anms-core