Skip to content

Commit

Permalink
Fix CI warning annotations
Browse files Browse the repository at this point in the history
- replace deprecated set-output command
- use a supported version of gh-action-pypi-publish action
  • Loading branch information
mrbean-bremen committed May 15, 2024
1 parent d5a30c5 commit bb86fda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pythontests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -60,7 +61,8 @@ jobs:
id: pip-cache
run: |
python -m pip install -U pip # to ensure version > 20 to have cache dir
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:
cd main
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: main/dist/
user: __token__
Expand Down

0 comments on commit bb86fda

Please sign in to comment.