This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
Merge to release (#1) #60
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 (black) | |
on: | |
push: | |
pull_request: | |
types: [ opened ] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
id: install-deps | |
run: | | |
python -m pip install --upgrade pip setuptools wheel black==22.6 requests | |
pip install -U -r requirements.txt | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Run black | |
if: ${{ always() && steps.install-deps.outcome == 'success' }} | |
run: | | |
black . --check --diff |