chore(deps): update dependency pytest-cov to v6 #595
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: pip install build twine | |
- name: Build | |
run: python3 -m build | |
- name: Check | |
run: twine check --strict dist/* | |
- name: Upload packages artifact | |
if: github.event_name == 'release' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-packages | |
path: dist/ | |
publish: | |
if: github.event_name == 'release' | |
needs: [build] | |
environment: | |
name: pypi | |
url: https://pypi.org/p/hcloud | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download packages artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: python-packages | |
path: dist/ | |
- name: Publish packages to PyPI | |
uses: pypa/[email protected] |