diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9bc6d42..41abd1d 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 @@ -7,22 +6,13 @@ on: push: branches: [ main ] pull_request: - branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + - uses: actions/checkout@v4 + - uses: psf/black@stable with: - auto-update-conda: true - python-version: 3.9 - channel-priority: strict - - name: Setup - shell: bash -l {0} - run: | - conda install -c conda-forge black - - name: Test - shell: bash -l {0} - run: black --check pymov2gif + options: "--check --diff" + src: ./${{ github.event.repository.name }}