From 391a6082c297a2f7186c6c3445c62c5075f2c9de Mon Sep 17 00:00:00 2001 From: Conor MacBride Date: Wed, 15 Jun 2022 22:21:49 +0100 Subject: [PATCH 1/2] Rename default branch to `main` I've removed the `workflow_dispatch` trigger from `update-changelog.yaml` as the `workflow_dispatch` event does not have the release details in its payload so I doubt this would run successfully. --- .github/workflows/update-changelog.yaml | 7 +++---- RELEASING.md | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-changelog.yaml b/.github/workflows/update-changelog.yaml index 4f08d5af..1432b5e0 100644 --- a/.github/workflows/update-changelog.yaml +++ b/.github/workflows/update-changelog.yaml @@ -1,11 +1,10 @@ # This workflow takes the GitHub release notes an updates the changelog on the -# master branch with the body of the release notes, thereby keeping a log in +# main branch with the body of the release notes, thereby keeping a log in # the git repo of the changes. name: "Update Changelog" on: - workflow_dispatch: release: types: [released] @@ -17,7 +16,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: - ref: master + ref: main - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 @@ -29,6 +28,6 @@ jobs: - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: - branch: master + branch: main commit_message: Update CHANGELOG file_pattern: CHANGES.md diff --git a/RELEASING.md b/RELEASING.md index d91e4bce..635cf077 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -2,10 +2,10 @@ To make a new release of pytest-mpl follow the following steps: -* Ensure the sdist and wheel GitHub Actions jobs succeeded on master after the last merge. +* Ensure the sdist and wheel GitHub Actions jobs succeeded on main after the last merge. * Also ensure that the tarball built has an autogenerated version number from setuptools_scm. * Write the release notes in the GitHub releases UI, use the autogenerated notes and tidy up a little. * Publish the new release, using the format `vX.Y.X`. -* Watch as GitHub actions builds the sdist and universal wheel and pushes them to PyPI for you, and updates CHANGES.md on the master branch. +* Watch as GitHub actions builds the sdist and universal wheel and pushes them to PyPI for you, and updates CHANGES.md on the main branch. * Enjoy the beverage of your choosing 🍻. From c050129019f70269995522774e918345997d2b66 Mon Sep 17 00:00:00 2001 From: Conor MacBride Date: Wed, 15 Jun 2022 22:27:32 +0100 Subject: [PATCH 2/2] Add changelog for v0.16.0 Needed to be manually added as the automated workflow failed --- CHANGES.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 9dbe976f..d8eb9188 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,25 @@ +## v0.16.0 - 2022-06-14 + +### Fixes + +- Make summary log message about test results in general instead of failures by @neutrinoceros in https://github.com/matplotlib/pytest-mpl/pull/148 +- Add support for classes with pytest 7 by @ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/164 + Note that this change necessitated a minor breaking change for figure tests within classes only, and the following will need to be done: + - Hash library test names will need to be regenerated/updated to include the class name. + - If the undocumented `mpl-use-full-test-name` ini option is enabled, the the baseline images will need to be regenerated, or have their filename updated to include the class name. + +### Other Changes + +- Improve parametrized test names in HTML summaries by @ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/165 + +### Infrastructure Changes + +- Pin tox environment `mpl35` to matplotlib 3.5.1 by @ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/162 +- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/matplotlib/pytest-mpl/pull/167 +- Improve `tests/subtests` by @ConorMacBride in https://github.com/matplotlib/pytest-mpl/pull/163 + +**Full Changelog**: https://github.com/matplotlib/pytest-mpl/compare/v0.15.1...v0.16.0 + ## v0.15.1 - 2022-04-22 ### Fixes