Skip to content

Commit

Permalink
Merge pull request #563 from akaihola/flynt-future
Browse files Browse the repository at this point in the history
Test against Flynt `master` branch in the CI build
  • Loading branch information
akaihola authored Mar 17, 2024
2 parents 357befe + 0781b61 commit 573c4f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ jobs:
constraints: '--constraint constraints-oldest.txt'
- os: ubuntu-latest
python-version: '3.12'
post_install: pip install -r constraints-future.txt
post_install: pip uninstall -y -r constraints-future.txt ;
pip install -r constraints-future.txt
--upgrade --upgrade-strategy=eager
needs:
- build-wheel
Expand All @@ -117,12 +118,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v3
- name: Install Darker and its dependencies from the wheel build earlier
- name: Install Darker and its dependencies from the wheel built earlier
run: pip install "${{needs.build-wheel.outputs.wheel-path}}[test]"
${{ matrix.upgrade }} ${{ matrix.constraints }}
- name: Upgrade Black and Isort from GitHub if future constraints are used
- name: Upgrade Black, Flynt and Isort from GitHub if future constraints are used
# This can't be done in the same Pip invocation as installing Darker
# since Darker might place an upper limit on Black and/or Isort during
# since Darker might place an upper limit on Black, Flynt and/or Isort during
# compatibility fixing periods.
if: matrix.post_install
run: ${{ matrix.post_install }}
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Added
- Update to ``ioggstream/bandit-report-artifacts@v1.7.4`` in CI.
- Support for Python 3.12 in the package metadata and the CI build.
- Update to Black 24.2.x and isort 5.13.x in pre-commit configuration.
- Test against Flynt ``master`` branch in the CI build.

Removed
-------
Expand Down
1 change: 1 addition & 0 deletions constraints-future.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# up-to-date by adding entries for any packages we want to get early
# incompatibility warnings for.
black @ git+https://github.com/psf/black.git@main
flynt @ git+https://github.com/ikamensh/flynt.git@master
isort @ git+https://github.com/PyCQA/isort.git@main

0 comments on commit 573c4f3

Please sign in to comment.