Add quick definition of risk specific and excess shifts #10346
Workflow file for this run
This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| # Run this workflow manually from the Actions tab. | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.13] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install pandoc | |
| uses: pandoc/actions/setup@v1 | |
| - name: Print environment values | |
| run: | | |
| cat $GITHUB_ENV | |
| - name: Update pip | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| sudo apt-get install graphviz | |
| - name: Doc build | |
| run: | | |
| make html -C docs/ SPHINXOPTS="-W --keep-going -n" | |
| - name: Send mail | |
| if: failure() && github.ref_name == 'main' | |
| 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.repository }} has ${{ job.status }} in ${{ github.ref_name }} | |
| # email body as text | |
| body: ${{ github.repository }} has ${{ job.status }} in ${{ github.ref_name }} | |
| # comma-separated string, send email to | |
| to: uw_ihme_simulationscience@uw.edu | |
| # from email name | |
| from: Vivarium Notifications |