Switch to pinned conda Rust dependency #3116
Workflow file for this run
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: Python style check | |
on: [pull_request] | |
# When this workflow is queued, automatically cancel any previous running | |
# or pending jobs from the same branch | |
concurrency: | |
group: style-${{ github.head_ref }} | |
cancel-in-progress: true | |
# Required shell entrypoint to have properly activated conda environments | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
pre-commit: | |
name: Run pre-commit hooks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: conda-incubator/[email protected] | |
with: | |
miniforge-variant: Mambaforge | |
use-mamba: true | |
python-version: "3.9" | |
channel-priority: strict | |
- name: Ensure we use conda rust toolchain | |
run: | | |
rustup self uninstall -y | |
mamba install -c conda-forge rust=1.77 | |
which python | |
pip list | |
mamba list | |
- uses: pre-commit/[email protected] |