Skip to content

Commit

Permalink
Update black workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Aug 27, 2024
1 parent 0f8c784 commit 55e0dcb
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# 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

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 }}

0 comments on commit 55e0dcb

Please sign in to comment.