Fix github actions #144
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: code-style | |
on: | |
push: | |
branches: 'main' | |
pull_request: | |
branches: '*' | |
jobs: | |
linting: | |
name: 'pre-commit hooks' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags. | |
- name: Set up conda environment with micromamba | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: ci/environment.yml | |
environment-name: dev-feisty | |
create-args: python=3.11 | |
- name: Run pre-commit | |
shell: bash -l {0} | |
run: | | |
pre-commit run --all-files |