| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Publish Python distributions | ||
| on: | ||
| push: | ||
| tags: | ||
| - '*' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release: | ||
| name: Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout sendgrid-python-smtpapi | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: '3.6' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install build | ||
| pip install wheel | ||
| python setup.py sdist bdist_wheel | ||
|
|
||
| - name: Publish package to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| user: __token__ | ||
| password: ${{ secrets.PYPI_TOKEN }} | ||
|
|
||
| notify-on-failure: | ||
| name: Slack notify on failure | ||
| if: ${{ failure() }} | ||
| needs: [ release ] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: rtCamp/action-slack-notify@v2 | ||
| env: | ||
| SLACK_COLOR: 'danger' | ||
| SLACK_ICON_EMOJI: ':github:' | ||
| SLACK_MESSAGE: ${{ format('Failed to release {1}{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} | ||
| SLACK_TITLE: Release Failure | ||
| SLACK_USERNAME: GitHub Actions | ||
| SLACK_MSG_AUTHOR: twilio-dx | ||
| SLACK_FOOTER: Posted automatically using GitHub Actions | ||
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
| MSG_MINIMAL: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Run Tests | ||
| on: | ||
| push: | ||
| branches: [ '*' ] | ||
| pull_request: | ||
| branches: [ main ] | ||
| schedule: | ||
| # Run automatically at 8AM PST Monday-Friday | ||
| - cron: '0 15 * * 1-5' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| tests: | ||
| name: Run Tests | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| strategy: | ||
| matrix: | ||
| python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9' ] | ||
| steps: | ||
| - name: Checkout sendgrid-python-smtpapi | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Build & Test | ||
| run: make install test-install test | ||
|
|
||
| notify-on-failure: | ||
| name: Slack notify on failure | ||
| if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} | ||
| needs: [ tests ] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: rtCamp/action-slack-notify@v2 | ||
| env: | ||
| SLACK_COLOR: 'danger' | ||
| SLACK_ICON_EMOJI: ':github:' | ||
| SLACK_MESSAGE: ${{ format('Failed running build on {1}{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} | ||
| SLACK_TITLE: Build Failure | ||
| SLACK_USERNAME: GitHub Actions | ||
| SLACK_MSG_AUTHOR: twilio-dx | ||
| SLACK_FOOTER: Posted automatically using GitHub Actions | ||
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
| MSG_MINIMAL: true |
This file was deleted.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.