Bump version 8.5.2 -> 8.5.3 #12
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: | |
tags: [ 'v*' ] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
id: install-deps | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install flake8 pytest | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
pip install . | |
- name: Pre-commit hooks | |
id: hooks | |
run: | | |
pre-commit run -a --show-diff-on-failure | |
- name: Test with pytest | |
id: test | |
run: | | |
pytest --cov=alertaclient tests/unit | |
- uses: act10ns/slack@v2 | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
if: failure() | |
release: | |
name: Publish | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Build | |
id: build | |
run: | | |
python3 -m pip install --upgrade build | |
python3 -m build | |
- name: Publish to PyPI | |
id: publish | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
python3 -m pip install --upgrade twine | |
python3 -m twine check dist/* | |
python3 -m twine upload --verbose dist/* | |
- uses: act10ns/slack@v2 | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
- name: Test Install | |
run: | | |
python3 -m pip install --upgrade alerta | |
python3 -m pip freeze |