refactor: update TagBot permissions to include workflows #68
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: Benchmark | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| push_results: | |
| description: 'Push results to gh-pages' | |
| required: false | |
| default: false | |
| type: boolean | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| deployments: write | |
| jobs: | |
| benchmark: | |
| name: Performance Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Julia | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| - name: Cache Julia artifacts | |
| uses: julia-actions/cache@v2 | |
| - name: Add FuseRegistry | |
| run: julia -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="https://github.com/ProjectTorreyPines/FuseRegistry.jl.git")); Pkg.Registry.add("General"); Pkg.Registry.update()' | |
| - name: Install dependencies | |
| run: julia --project=benchmark -e 'using Pkg; Pkg.instantiate()' | |
| - name: Run benchmarks | |
| run: julia --project=benchmark benchmark/ci_benchmark.jl | |
| - name: Store benchmark result | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: FastInterpolations.jl Benchmarks | |
| tool: 'julia' | |
| output-file-path: output.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.push_results == true) }} | |
| alert-threshold: '110%' | |
| comment-always: true | |
| comment-on-alert: true | |
| fail-on-alert: false | |
| gh-pages-branch: gh-pages | |
| benchmark-data-dir-path: bench |