Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/cron-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,38 @@ jobs:
cp ../whats_left.temp ./_data/whats_left.temp
git add -A
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update what is left results" --author="$GITHUB_ACTOR"
git push
git push

benchmark:
name: Collect benchmark data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: collect execution benchmark data
run: cargo bench --bench execution
- name: collect microbenchmarks data
run: cargo bench --bench microbenchmarks
- name: restructure generated files
run: |
cd ./target/criterion
find -type d -name cpython | xargs rm -rf
find -type d -name rustpython | xargs rm -rf
find -maxdepth 2 -type d -name report | xargs rm -rf
find -type f -not -name violin.svg | xargs rm -rf
for file in $(find -type f -name violin.svg); do mv $file $(echo $file | sed -E "s_\./([^/]+)/([^/]+)/report/violin\.svg_./\1/\2.svg_"); done
find -mindepth 2 -maxdepth 2 -type d | xargs rm -rf
- name: upload benchmark data to the website
env:
SSHKEY: ${{ secrets.ACTIONS_TESTS_DATA_DEPLOY_KEY }}
run: |
echo "$SSHKEY" >~/github_key
chmod 600 ~/github_key
export GIT_SSH_COMMAND="ssh -i ~/github_key"

git clone git@github.com:RustPython/rustpython.github.io.git website
cd website
rm -rf ./assets/criterion
cp -r ../target/criterion ./assets/criterion
git add ./assets/criterion
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update benchmark results"
git push