Merge pull request #49 from echemdb/gh-miniforge #57
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: Lint | |
on: | |
push: { branches: [ "main" ] } | |
pull_request: { branches: [ "main" ] } | |
concurrency: | |
group: lint-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
python-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: { submodules: recursive } | |
- name: setup conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: "${{ matrix.python }}" | |
- name: install dependencies | |
shell: bash -l {0} | |
run: | | |
conda env update --quiet -n test -f environment-dev.yml | |
conda list | |
- name: ruff lint | |
shell: bash -l {0} | |
run: | | |
ruff check . | |
- name: ruff format | |
shell: bash -l {0} | |
run: | | |
ruff format . | |
- name: ruff isort | |
shell: bash -l {0} | |
run: | | |
ruff check --select I . |