v3.0.8 #70
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: deploy | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python --version | |
python -m pip install --upgrade pip | |
pip install setuptools wheel build | |
- name: Test | |
run: | | |
pip install .[test] | |
pytest --runslow ./tests | |
- name: Build | |
run: python -m build | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- name: Send mail | |
# Notify when cron job fails | |
if: failure() | |
uses: dawidd6/action-send-mail@v2 | |
with: | |
# mail server settings | |
server_address: smtp.gmail.com | |
server_port: 465 | |
# user credentials | |
username: ${{ secrets.NOTIFY_EMAIL }} | |
password: ${{ secrets.NOTIFY_PASSWORD }} | |
# email subject | |
subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }} | |
# email body as text | |
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }} | |
# comma-separated string, send email to | |
to: [email protected] | |
# from email name | |
from: Vivarium Notifications | |