[ci] Enhancement: Perf Workflow #2
Workflow file for this run
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
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT license. | |
name: Performance Analysis | |
on: | |
push: | |
branches: | |
- bugfix-* | |
- enhancement-* | |
- feature-* | |
- workaround-* | |
- dev | |
- unstable | |
- main | |
workflow_dispatch: | |
jobs: | |
plot: | |
name: Plot | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup SSH | |
shell: bash | |
run: | | |
mkdir -p $HOME/.ssh/ | |
echo "${{ secrets.SSHKEY }}" > "$HOME/.ssh/id_rsa" | |
chmod 400 $HOME/.ssh/id_rsa | |
echo "Host *" > $HOME/.ssh/config | |
echo -e "\tStrictHostKeyChecking no" >> $HOME/.ssh/config | |
echo -e "\tIdentityFile $HOME/.ssh/id_rsa" >> $HOME/.ssh/config | |
echo -e "\tIdentitiesOnly yes" >> $HOME/.ssh/config | |
echo -e "\tPasswordAuthentication no" >> $HOME/.ssh/config | |
echo -e "\tUser ${{ secrets.USERNAME }}" >> $HOME/.ssh/config | |
echo -e "\tPort ${{ secrets.PORTNUM }}" >> $HOME/.ssh/config | |
- name: Plot Performance | |
run: | | |
pip install --pre azure-data-tables pandas matplotlib | |
python3 tools/plot.py \ | |
--connection "${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}" \ | |
--table ${{ secrets.AZURE_STORAGE_TABLE_NAME }} \ | |
--key ${{ secrets.AZURE_STORAGE_KEY }} \ | |
--container ${{ secrets.AZURE_STORAGE_CONTAINER }} | |