Skip to content

Commit

Permalink
[CI] Add job 'Format'
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Nov 1, 2021
1 parent d6d382a commit 0104063
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
pull_request:
# Run CI daily even without code changes to ensure tests pass with
# Run CI daily even without code changes to ensure tests pass with
# updated dependencies.
schedule:
- cron: '0 0 * * 5'
Expand All @@ -18,7 +18,28 @@ on:

jobs:

build:
Format:
name: 🐍 Format
runs-on: ubuntu-latest
steps:

- name: 🧰 Checkout
uses: actions/checkout@v2

- name: 🐍 Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: 🛠️ Install dependencies
run: |
python -m pip install -U pip
python -m pip install black
- name: 🚦 Check code formatting standards
run: python -m black --check ./

Build:
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 0104063

Please sign in to comment.