-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.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
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |