Skip to content

Commit

Permalink
.github: Added initial version of automated chart tests cron job.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
levy committed Mar 24, 2023
1 parent 59bbb86 commit b4106be
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/chart-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Chart tests

on:
schedule:
# https://crontab.guru/#0_16_*_*_6
- cron: "0 16 * * 6" # “At 16:00 on Saturday.”
workflow_dispatch:
# nothing

jobs:
build-native:
runs-on: ubuntu-latest
strategy:
matrix:
mode: ["release"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Pull Docker image
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Build (native)
run: |
docker run -i --env TARGET_PLATFORM=linux --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-build.sh
- uses: actions/upload-artifact@v3
with:
name: libinet-so
path: ${{ github.workspace }}/src/libINET*.so

more-tests:
needs: build-native
runs-on: ubuntu-latest
strategy:
matrix:
scriptname: [
"cd showcases && inet_run_chart_tests -m release --no-concurrent",
]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: libinet-so
path: ${{ github.workspace }}/src/
- name: Pull Docker image
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230320
- name: Run ${{ matrix.scriptname }}
run: |
docker run -i --env MODE=debug --env GITHUB_WORKSPACE --env SCRIPTNAME='${{ matrix.scriptname }}' \
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE \
ghcr.io/inet-framework/ci-inet:6.0.1-230320 /bin/bash $GITHUB_WORKSPACE/_scripts/github/github-job-inet_run-tests.sh

0 comments on commit b4106be

Please sign in to comment.