Files
sed-tracking/.github/workflows/gnu-data.yml
T
Sylvestre Ledru 796bdd8b50 initial version
2026-01-11 20:55:16 +01:00

78 lines
1.8 KiB
YAML

name: CI
on:
push:
branches:
- main
schedule:
- cron: "0 2,14 * * *"
jobs:
gnu:
name: Process the GNU and size test results
runs-on: ubuntu-latest
steps:
- name: Install deps
shell: bash
run: |
sudo apt-get update
sudo apt-get install jq python3-pandas python3-matplotlib python3-seaborn
- name: Checkout repo
uses: actions/checkout@v5
- name: Download the GNU result
uses: dawidd6/action-download-artifact@v11
with:
workflow: GnuTests.yml
name: test-summary
repo: uutils/sed
path: dl
- name: Download the full test report
uses: dawidd6/action-download-artifact@v11
with:
workflow: GnuTests.yml
name: aggregated-result
repo: uutils/sed
path: dl
- name: Merge the json files
shell: bash
run: |
echo "== dl/gnu-result.json =="
cat dl/gnu-result.json
echo "== gnu-result.json =="
cat gnu-result.json|tail -100
jq -s '.[0] * .[1]' gnu-result.json dl/gnu-result.json > merged.json
echo "== merged.json ="
cat merged.json|tail -100
mv merged.json gnu-result.json
echo "== dl/aggregated-result.json =="
cat dl/aggregated-result.json|tail -100
mv dl/aggregated-result.json aggregated-result.json
rm -rf dl
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Update of the data"
- name: Generate the graphs
shell: bash
run: |
python graph.py gnu-result.json GNU
- name: Add & Commit the GNU graph
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the GNU graph"
add: gnu-results.svg