jrw972 is testing out GitHub Actions 🚀 #40
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
name: Testing Interoperability | |
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | |
on: workflow_dispatch | |
jobs: | |
Testing_Interoperability: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.4' | |
- name: Downloads assets | |
uses: robinraju/release-downloader@v1.7 | |
with: | |
latest: true | |
fileName: "*" | |
- name: Unzip | |
run: unzip '*.zip' -d executables | |
- name: Setting up environment | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
pip install -r requirements.txt | |
- name: Run Interoperability script | |
run: | | |
source .venv/bin/activate | |
cd executables | |
for i in ./* ; do \ | |
for j in ./* ; do \ | |
echo "Testing Publisher $i --- Subscriber $j"; \ | |
python3 ./../interoperability_report.py -P $i -S $j -o=./../junit_interoperability_report.xml; \ | |
if [ -d "./OpenDDS-durable-data-dir" ]; then \ | |
echo Deleting OpenDDS-durable-data-dir; \ | |
rm -rf ./OpenDDS-durable-data-dir; \ | |
fi; \ | |
done; \ | |
done | |
- name: Generate xlsx report | |
run: | | |
source .venv/bin/activate | |
python3 generate_xlsx_report.py --input junit_interoperability_report.xml --output interoperability_report_$(date '+%Y-%m-%d-%H_%M_%S').xlsx | |
- name: XUnit Viewer | |
id: xunit-viewer | |
uses: AutoModality/action-xunit-viewer@v1 | |
with: | |
results: ./junit_interoperability_report.xml | |
- name: Attach the report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: interoperability_report | |
path: | | |
./index.html | |
./junit_interoperability_report.xml | |
./interoperability_report*.xlsx |