8000 Removes ASV version pin and pin Conda version for ASV workflow by kafitzgerald · Pull Request #610 · NCAR/geocat-comp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Removes ASV version pin and pin Conda version for ASV workflow #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions .github/workflows/asv-benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,36 @@ jobs:
fetch-depth: 0
ref: main
path: geocat-comp-asv
- name: Set environment variables
run: |
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Set up conda environment
id: env-setup
continue-on-error: true
uses: mamba-org/setup-micromamba@v1
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ./build_envs/asv-bench.yml
cache-environment: true
cache-environment-key: "benchmark-${{runner.os}}-${{runner.arch}}-${{env.TODAY}}"
miniforge-version: "24.1.2-0"
activate-environment: asv-bench

- name: Get date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: retry environment set up if failed
if: steps.env-setup.outcome == 'failure'
uses: mamba-org/setup-micromamba@v1
- name: Cache Conda env
uses: actions/cache@v4
with:
download-micromamba: false
environment-file: ./build_envs/asv-bench.yml
cache-environment: true
cache-environment-key: "benchmark-${{runner.os}}-${{runner.arch}}-${{env.TODAY}}"
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('./build_envs/asv-bench.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if the environment file has not changed
CACHE_NUMBER: 0
id: cache

- name: Update environment
run:
conda env update -n asv-bench -f
./build_envs/asv-bench.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Copy existing results
run: |
Expand Down
2 changes: 1 addition & 1 deletion build_envs/asv-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
dependencies:
- python=3.10
- asv
- cf_xarray
- cftime
- cython
Expand All @@ -18,5 +19,4 @@ dependencies:
- xarray
- xskillscore
- pip:
- asv<0.6.2
- -e ../
1 change: 1 addition & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Internal Changes
^^^^^^^^^^^^^^^^
* Update and setup autoupdate for pre-commit hooks by `Cora Schneck`_ in (:pr:`604`)
* Removed ``pre-commit.yaml`` action in favor of pre-commit.ci by `Cora Schneck`_ in (:pr:`608`)
* Remove ASV version pin and pin Conda version for benchmarking workflow by `Katelyn FitzGerald`_ in (:pr:`610`)

v2024.04.0 (April 23, 2024)
---------------------------
Expand Down
Loading
0