test: add telegram action tests #77
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: Check PR | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-pr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup_environment | |
| with: | |
| python-enabled: true | |
| poetry-enabled: true | |
| zizmor-enabled: true | |
| - name: Install Dependencies | |
| run: | | |
| task init | |
| - name: Lint PR | |
| run: | | |
| task lint | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for Zizmor | |
| - name: Test backend in container | |
| working-directory: backend | |
| run: | | |
| task test-container | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }} | |
| TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} |