Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 in the actions… #115
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: codspeed-benchmarks | |
on: | |
# Run on pushes to the main branch | |
push: | |
branches: | |
- "main" | |
# Run on pull requests | |
pull_request: | |
types: [labeled] | |
jobs: | |
benchmarks: | |
if: ${{ github.event.label.name == 'benchmark' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
auto-activate-base: true | |
activate-environment: "" # base environment | |
channels: conda-forge,nodefaults | |
channel-priority: strict | |
- name: Install dependencies | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
# Preprend $CONDA/bin to $PATH so that conda's python is used over system python | |
echo $CONDA/bin >> $GITHUB_PATH | |
conda install --solver=libmamba dask python=3.10 \ | |
esmpy>=8.2.0 mpich netcdf4 numpy pip pooch pydantic>=1.10 pyproj \ | |
pytest pytest-cov pytest-mypy rasterio rioxarray scipy sparse>=0.13.0 \ | |
xarray>=2024.10.0 xesmf zarr cf_xarray>=0.8.0 | |
python -m pip install -U pytest-codspeed setuptools | |
python -m pip install -e . --no-deps | |
- name: Run benchmarks | |
uses: CodSpeedHQ/[email protected] | |
with: | |
run: | | |
conda list | |
python -c "import ndpyramid; print(ndpyramid.__version__)" | |
python -m pytest --codspeed |