Releases: ASFHyP3/actions
Actions v0.21.0
Added
- A
reusable-pypiworkflow to build source and binary distributions of Python package and distribute them on PyPI.org.
Actions v0.20.0
Added
- The
reusable-docker-ecr.ymlworkflow now accepts afileinput for specifying the name of the dockerfile to build.
Changed
-
The
update-examples.ymlworkflow no longer used thereusable-git-object-name.ymlworkflow. -
The
reusable-docker-ecr.ymlandreusable-docker-ghcr.ymlworkflows have changed substantially! These workflows are now version-centric instead of branch-centric and their usage has changed. Please make these changes to any calling workflow:on: push: branches: - - main - develop + tags: + - 'v*' pull_request: branches: - main - developand:
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.19.0 ... with: - release_branch: main - develop_branch: develop ...For current usage, see the README and for more details about these changes, see #288.
Fixed
latesttag will now be applied to release-tagged Docker images correctly. Fixes #278
Removed
- The
reusable-git-object-name.ymlworkflow has been removed. We recommend using thereusable-version-info.ymlworkflow instead.
Actions v0.19.0
Added
- Added an optional
runnerinput forreusable-ruffandreusable-mypyto allow specifying a custom GitHub Actions runner. Helps to address ASFHyP3/hyp3-testing#128
Actions v0.18.1
Added
- Added
permissionsfield for every job in the README examples to address #220
Changed
- Changed the default value for the
reusable-release.ymlworkflow'ssync_pr_labelinput fromtools-bottobumpless.
Fixed
- Removed unnecessary
actions/checkoutstep fromreusable-release-checklist-comment.ymlso that it does not require thecontents: readpermission for private repos. - Replaced the
conda_env_nameinput parameter withpython_versionfor thereusable-version-infojob in the docker build README examples. - The use or requirements of GitHub issue/pull request labels in the reusable workflows are now described in the README.
Actions v0.18.0
Added
- Added notes to our ruff documentation on how to relax the rules for docstrings and type annotations.
- Added a disclaimer to our mypy documentation regarding the limitations of using a static type checker on Python code.
- Added a note about how the
check_untyped_defsoption included in our recommended mypy settings differs from mypy's default static vs. dynamic typing behavior.
Changed
-
Updated our recommended ruff settings to suppress type annotation warnings for dummy function parameters (e.g.
_) and ignore allD1rules (missing docstring warnings) fortests/:+[tool.ruff.lint.flake8-annotations] +suppress-dummy-args = true + [tool.ruff.lint.extend-per-file-ignores] -"tests/*" = ["D100", "D103", "ANN"] +"tests/*" = ["D1", "ANN"]
Fixed
- The link to our Mypy wiki article is now publicly accessible.
Actions v0.17.1
Fixed
- Fixed
ruff: command not foundbug inreusable-ruff, introduced by the previous release.
Actions v0.17.0
Changed
-
The
reusable-ruffworkflow now runs inside a mamba environment and assumes the presence of anenvironment.ymlfile. -
We now recommend pinning to an exact version for both
ruffandmypyin your project dependencies, to avoid unexpected static analysis errors due to unpinned dependency upgrades. -
We now recommend adding the following lines to
pyproject.toml, to bring our recommendedruffsettings in line with hyp3-cookiecutter:[tool.ruff.lint.extend-per-file-ignores] "tests/*" = ["D100", "D103", "ANN"]
Actions v0.16.0
Changed
- The
reusable-ruffworkflow will now run the ruff format step whether or not the ruff check step failed.
Actions v0.15.0
Removed
-
The
reusable-mypyworkflow no longer passes any optional arguments to themypycommand. This makes it easier to runmypylocally, because the command is just:mypy .If you want to preserve the removed options for your project, you must now add them to
[tool.mypy]inpyproject.toml:install_types = true non_interactive = true pretty = true ignore_missing_imports = true
Note that we discourage enabling
ignore_missing_importsas a global option (see #225). You can always find our currently recommended configuration options in the README.
Actions v0.14.0
Added
reusable-mypyreusable workflow for performing static type checking with mypy.reusable-ruffnow prints the suggested commands for automatically fixing errors.
Removed
reusable-flake8.ymlhas been removed. We recommendreusable-ruffinstead.