Rename publish workflow #101
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: Run tests | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Deploy | |
steps: | |
# This action checks out the code from the repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install poetry and run tests | |
run: | | |
git tag 0.0.0.dev | |
pip install poetry | |
poetry config virtualenvs.in-project true | |
make install | |
. .venv/bin/activate | |
make test | |
- name: Post to a Slack channel | |
if: always() | |
id: slack | |
uses: slackapi/[email protected] | |
with: | |
channel-id: 'C05P40DCGAK' | |
payload: | | |
{ | |
"text": "Gihtub CI test result: ${{ job.status }}" | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "G3 CI/PR-${{ github.event.pull_request.html_url }}: ${{ job.status }}" | |
} | |
} | |
] | |
} | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_WORKABLE_APP_OAUTH_TOKEN }} |