Skip to content

fix: Update Black check workflow triggers and dependencies #6

fix: Update Black check workflow triggers and dependencies

fix: Update Black check workflow triggers and dependencies #6

Workflow file for this run

name: Black Formatting Check
on:
push:
branches: ["*"]
pull_request:
branches: ["dependabot/**"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Get Python version from Pipfile
run: echo "PYTHON_VERSION=$(grep "python_version" Pipfile | cut -d ' ' -f 3 - | tr -d '"')" >> $GITHUB_ENV
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install pipenv
pipenv install --dev
- name: Run Black Check
run: |
pipenv run black --check .