Merge pull request #31 from boutproject/fix-new-scipy #108
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: linting | |
on: push | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade black isort | |
- name: Version | |
run: | | |
python3 --version | |
black --version | |
isort --version | |
- name: Run black | |
run: | | |
pwd | |
ls | |
black zoidberg | |
isort zoidberg | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Apply black/isort changes" |