Skip to content

CI: (deps): Bump github/codeql-action from 4.35.2 to 4.35.3 in /.github/workflows #697

CI: (deps): Bump github/codeql-action from 4.35.2 to 4.35.3 in /.github/workflows

CI: (deps): Bump github/codeql-action from 4.35.2 to 4.35.3 in /.github/workflows #697

Workflow file for this run

name: Benchmark PR
on:
pull_request:
#we don't need pull requests on the gh-pages branch to be benchmarked
branches: [main]
types: [opened, synchronize, reopened, labeled] #defaults and when labeled
workflow_dispatch:
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
contents: read
#sets only to run when the GitHub PR is labeled with 'benchmark'
if: contains(github.event.pull_request.labels.*.name, 'benchmark')
timeout-minutes: 20 #times out after 20 minutes
defaults:
run:
working-directory: ./benchmarks #sets the default working directory to ./benchmarks
steps:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # Fetch full history
persist-credentials: false
- run: python -m pip install numpy pandas xarray metpy netcdf4
- name: Create data array
run: python data_array_generate.py
- run: pip install asv virtualenv #install asv
- run: python -m asv machine --yes #setup the asv machine settings with device-given defaults
- name: Run ASV
# runs asv on the PR's base sha (should always be main) and the PR branch's sha
run: python -m asv continuous ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}