Repository navigation
CI #241
This file contains hidden or 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: 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@v7 | |
| - name: Download the GNU result | |
| uses: dawidd6/action-download-artifact@v21 | |
| with: | |
| workflow: GnuTests.yml | |
| name: test-summary | |
| repo: uutils/grep | |
| path: dl | |
| - name: Download the full test report | |
| uses: dawidd6/action-download-artifact@v21 | |
| with: | |
| workflow: GnuTests.yml | |
| name: grep-gnu-full-result | |
| repo: uutils/grep | |
| path: dl | |
| - name: Merge the json files | |
| shell: bash | |
| run: | | |
| echo "== dl/grep-gnu-result.json ==" | |
| cat dl/grep-gnu-result.json | |
| echo "== gnu-result.json ==" | |
| cat gnu-result.json|tail -100 | |
| jq -s '.[0] * .[1]' gnu-result.json dl/grep-gnu-result.json > merged.json | |
| echo "== merged.json =" | |
| cat merged.json|tail -100 | |
| mv merged.json gnu-result.json | |
| echo "== dl/grep-gnu-full-result.json ==" | |
| cat dl/grep-gnu-full-result.json|tail -100 | |
| mv dl/grep-gnu-full-result.json aggregated-result.json | |
| rm -rf dl | |
| - name: Add & Commit | |
| uses: EndBug/add-and-commit@v10.0.0 | |
| 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@v10.0.0 | |
| with: | |
| default_author: github_actions | |
| message: "Refresh the GNU graph" | |
| add: gnu-results.svg |