Fix __conda_reactivate
command not found error
#8771
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: Linters | |
on: | |
push: | |
branches: | |
- main | |
- 1.x | |
pull_request: | |
branches: | |
- main | |
- 1.x | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PRE_COMMIT_USE_MICROMAMBA: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pre-commit | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: linters | |
create-args: pre-commit | |
- name: Add micromamba to GITHUB_PATH | |
run: echo "${HOME}/micromamba-bin" >> $GITHUB_PATH | |
- name: Run all linters | |
shell: micromamba-shell {0} | |
run: | | |
pre-commit run --all-files --verbose --show-diff-on-failure |