You've already forked sed-tracking
mirror of
https://github.com/uutils/sed-tracking.git
synced 2026-06-10 16:14:49 -07:00
78 lines
1.8 KiB
YAML
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: sed-gnu-full-result
|
|
repo: uutils/sed
|
|
path: dl
|
|
|
|
- name: Merge the json files
|
|
shell: bash
|
|
run: |
|
|
echo "== dl/sed-gnu-result.json =="
|
|
cat dl/sed-gnu-result.json
|
|
echo "== gnu-result.json =="
|
|
cat gnu-result.json|tail -100
|
|
jq -s '.[0] * .[1]' gnu-result.json dl/sed-gnu-result.json > merged.json
|
|
echo "== merged.json ="
|
|
cat merged.json|tail -100
|
|
mv merged.json gnu-result.json
|
|
|
|
|
|
echo "== dl/sed-gnu-full-result.json =="
|
|
cat dl/sed-gnu-full-result.json|tail -100
|
|
mv dl/sed-gnu-full-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
|
|
|