Skip to content

Commit

Permalink
Skip reformatting Darker's code base on old Black
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jan 13, 2023
1 parent 1abf7f1 commit 924996e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,17 @@ jobs:
if: matrix.constraints == '--constraint constraints-oldest.txt'
run: |
sed -i 's/py311/py39/' pyproject.toml
- name: Run Pytest
- name: Run Pytest with the Darker plugin on recent Black versions
if: matrix.constraints != '--constraint constraints-oldest.txt'
run: |
pytest --darker
- name: Run Pytest without the Darker plugin on oldest Black version
# The reformatting rules used to be a bit different. We don't need to
# test reformatting Darker's own code base with old Black versions.
# Interoperability is ensured by unit tests.
if: matrix.constraints == '--constraint constraints-oldest.txt'
run: |
pytest
build-sdist-validate-dists:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 924996e

Please sign in to comment.