Skip to content

Commit 8d6ff8e

Browse files
committed
CI: Modernize package versions
1 parent 87a7bb9 commit 8d6ff8e

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Publish
33
on: push
44

55
jobs:
6-
build-n-push:
6+
publish:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
1010
with:
1111
fetch-depth: 0
1212
- name: Set up Python 3.7
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v2
1414
with:
1515
python-version: 3.7
1616

@@ -20,17 +20,19 @@ jobs:
2020
run: python -m build
2121

2222
- name: Publish distribution 📦 to Test PyPI
23-
uses: pypa/gh-action-pypi-publish@v1.3.1
23+
uses: pypa/gh-action-pypi-publish@release/v1
2424
with:
2525
skip_existing: true
2626
password: ${{ secrets.TEST_PYPI_TOKEN }}
2727
repository_url: https://test.pypi.org/legacy/
28+
2829
- name: Publish distribution 📦 to PyPI
2930
if: startsWith(github.ref, 'refs/tags')
30-
uses: pypa/gh-action-pypi-publish@v1.3.1
31+
uses: pypa/gh-action-pypi-publish@release/v1
3132
with:
3233
skip_existing: true
3334
password: ${{ secrets.PYPI_TOKEN }}
35+
3436
#- name: publish-to-conda
3537
# if: startsWith(github.ref, 'refs/tags')
3638
# uses: m0nhawk/conda-package-publish-action@master

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ jobs:
3030
--user panodata \
3131
--repo grafana-client \
3232
--tag ${{ steps.version.outputs.VERSION }} \
33-
--name ${{ steps.version.outputs.VERSION }} \
34-
--description "$(cat $GITHUB_WORKSPACE/CHANGELOG.md)"
33+
--name ${{ steps.version.outputs.VERSION }}

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ jobs:
1919
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy3']
2020
steps:
2121
- uses: actions/checkout@v2
22-
- name: Set up Python
23-
uses: actions/setup-python@v1
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies
2727
run: |
28-
# Only needed for `pypy3`.
28+
# Only needed for PyPy3.
2929
sudo apt install libxml2-dev libxslt-dev
3030
python -m pip install --upgrade pip
3131
python -m pip install .[test]
32-
shell: bash
3332
- name: Run tests
3433
run: |
3534
coverage run --source grafana_client -m xmlrunner discover -o test-reports
3635
coverage xml
37-
shell: bash
3836
3937
# https://github.com/codecov/codecov-action
4038
- name: Upload coverage results to Codecov

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Improve inline documentation
2222
* Add `MANIFEST.in` to exclude specific files from `sdist` package
2323
* CI: Update from `pep517.build` to `build`
24+
* CI: Modernize package versions
2425

2526

2627
<a name="1.0.3"></a>

0 commit comments

Comments
 (0)