Skip to content

Merge pull request #29 from actinia-org/change_location_in_text #40

Merge pull request #29 from actinia-org/change_location_in_text

Merge pull request #29 from actinia-org/change_location_in_text #40

Workflow file for this run

name: Python Black Formatting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-black:
name: Black ${{ matrix.black-version }}
# Using matrix just to get variables which are not environmental variables
# and also to sync with other workflows which use matrix.
strategy:
matrix:
include:
- os: ubuntu-20.04
python-version: "3.10"
black-version: "22.3.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install black==${{ matrix.black-version }}
- name: Run Black
run: |
black --check --diff --line-length 79 .