Skip to content

Draft: xarray/main #797

Draft: xarray/main

Draft: xarray/main #797

Workflow file for this run

# This workflow will test the code base using the LATEST version of black
# IMPORTANT: Black is under development. Hence, minor fommatting changes between
# different version are expected.
# If this test fails, install the latest version of black and then run black.
# Preferably, run black only on the files that you have modified.
# This will faciliate the revision of the proposed changes.
name: Check Black
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Black version
run: black --version
- name: Black check
working-directory: ${{github.workspace}}
run: black --check .