Skip to content

Commit

Permalink
Define CI workflow lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinclert committed Oct 1, 2021
1 parent ad0a20b commit 2047dc7
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -8,22 +8,39 @@ on:
branches:
- master
paths-ignore:
- "**.ipynb"
- "**.md"
- "**.rst"
pull_request:
branches:
- master
paths-ignore:
- "**.ipynb"
- "**.md"
- "**.rst"

jobs:

test:
lint:
needs: []
runs-on: ubuntu-latest
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v2
- name: "Set up Python 3.7"
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: "Install Python dependencies"
run: |
pip install --no-cache-dir --upgrade pip setuptools wheel
pip install --no-cache-dir --quiet ".[lint]"
pip list
- name: "Check format"
run: |
black --check examples
test:
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
Expand Down

0 comments on commit 2047dc7

Please sign in to comment.