Skip to content

Commit b4106be

Browse files
committed
.github: Added initial version of automated chart tests cron job.
This test does the following: - builds INET in release mode - runs all simulations to gather statistical results - generates all charts from all analysis files - compares generated charts to existing images from media submodule
1 parent 59bbb86 commit b4106be

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/chart-tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Chart tests
2+
3+
on:
4+
schedule:
5+
# https://crontab.guru/#0_16_*_*_6
6+
- cron: "0 16 * * 6" # “At 16:00 on Saturday.”
7+
workflow_dispatch:
8+
# nothing
9+
10+
jobs:
11+
build-native:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
mode: ["release"]
16+
fail-fast: false
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Pull Docker image
20+
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
21+
- name: Build (native)
22+
run: |
23+
docker run -i --env TARGET_PLATFORM=linux --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE \
24+
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
25+
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
26+
- uses: actions/upload-artifact@v3
27+
with:
28+
name: libinet-so
29+
path: ${{ github.workspace }}/src/libINET*.so
30+
31+
more-tests:
32+
needs: build-native
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
scriptname: [
37+
"cd showcases && inet_run_chart_tests -m release --no-concurrent",
38+
]
39+
fail-fast: false
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/download-artifact@v3
43+
with:
44+
name: libinet-so
45+
path: ${{ github.workspace }}/src/
46+
- name: Pull Docker image
47+
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
48+
- name: Run ${{ matrix.scriptname }}
49+
run: |
50+
docker run -i --env MODE=debug --env GITHUB_WORKSPACE --env SCRIPTNAME='${{ matrix.scriptname }}' \
51+
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
52+
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-inet_run-tests.sh

0 commit comments

Comments
 (0)