From a03dffdb009fb4e5f9525bb58a34d1a82430efdc Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 24 Nov 2023 13:04:36 +0100 Subject: [PATCH] Update black action --- .github/workflows/black.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 363ba27f..9f5d698e 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,5 +1,4 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +# This workflow is used to check the differences and find conflict markers or whitespace errors name: Black @@ -14,19 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2.2.0 + - uses: psf/black@stable with: - python-version: '3.11' - mamba-version: "*" - channels: conda-forge - miniforge-variant: Mambaforge - channel-priority: strict - auto-update-conda: true - environment-file: .ci_support/environment-openmpi.yml - - name: Setup - shell: bash -l {0} - run: | - conda install -c conda-forge black - - name: Test - shell: bash -l {0} - run: black --check pympipool \ No newline at end of file + options: "--check --diff" + src: ./${{ github.event.repository.name }}