Add commented deploy step to develop workflow (uncomment before the f… #2
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: good_food_features workflow | |
on: | |
push: | |
branches-ignore: [main, develop] | |
pull_request: | |
jobs: | |
flake8_and_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.6.1 | |
virtualenvs-create: false | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction --no-root | |
- name: Test with flake8 | |
run: | | |
python -m flake8 | |
# - name: Test with pytest | |
# run: | | |
# pytest | |
send_message: | |
runs-on: ubuntu-latest | |
needs: flake8_and_tests | |
steps: | |
- name: send message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
${{ github.workflow }} completed successfully! | |
Repository: ${{ github.repository }}. | |
Branch name: ${{ github.ref_name }}. | |
Commit author: ${{ github.actor }}. | |
Commit message: ${{ github.event.commits[0].message }}. | |
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}} |