Skip to content

Commit

Permalink
Merge pull request #276 from jan-janssen/black
Browse files Browse the repository at this point in the history
Simplify black action
  • Loading branch information
jan-janssen authored Aug 27, 2024
2 parents 079e6f1 + 6cfe0ac commit 9d4dee1
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,29 +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/[email protected]
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
auto-update-conda: true
python-version: 3.9
channel-priority: strict
miniforge-variant: Mambaforge
- name: Setup
shell: bash -l {0}
run: |
conda install -c conda-forge black
- name: Test
shell: bash -l {0}
run: black --check gmailsorter
options: "--check --diff"
src: ./${{ github.event.repository.name }}

0 comments on commit 9d4dee1

Please sign in to comment.