jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
913 stars 121 forks source link

Update action's branch to fix deprecation warning #196

Closed hugovk closed 1 year ago

hugovk commented 1 year ago

Fixes a deprecation warning at https://github.com/jazzband/geojson/actions/runs/4012584880

> PyPA publish to PyPI GHA: UNSUPPORTED GITHUB ACTION VERSION <<#L1 You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas.

Docs: https://github.com/pypa/gh-action-pypi-publish#-master-branch-sunset-


Also bump other GitHub Actions, should fix some or all of the other warnings:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

The save-state command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/


And simplify config:

codecov[bot] commented 1 year ago

Codecov Report

Merging #196 (15c90e5) into main (60813ae) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #196   +/-   ##
=======================================
  Coverage   94.90%   94.90%           
=======================================
  Files          10       10           
  Lines         353      353           
  Branches       76       76           
=======================================
  Hits          335      335           
  Misses         11       11           
  Partials        7        7           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

rayrrr commented 1 year ago

Thanks @hugovk