Apply black code style #11
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
name: Charts | |
on: | |
push: | |
branches: [master] | |
paths: | |
- benchmark/results/*.json | |
- benchmark/*chart*.py | |
- .github/workflows/charts.yml | |
workflow_run: | |
workflows: [Benchmark] | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
gen_charts: | |
name: Gen Benchmark Charts | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install Dependencies | |
run: pip install -r benchmark/requirements.txt | |
- name: Gen Charts | |
run: python gen_charts.py | |
working-directory: benchmark | |
- name: Commit Results | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add benchmark/charts | |
git commit -m "Upload benchmark charts" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |