File: integration_test.yaml

package info (click to toggle)
beets 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: python: 46,429; javascript: 8,018; xml: 334; sh: 261; makefile: 125
file content (44 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: integration tests
on:
  workflow_dispatch:
  schedule:
    - cron: "0 0 * * SUN" # run every Sunday at midnight
jobs:
  test_integration:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Python tools
        uses: BrandonLWhite/pipx-install-action@v1.0.3
      - uses: actions/setup-python@v5
        with:
          python-version: 3.9
          cache: poetry

      - name: Install dependencies
        run: poetry install

      - name: Test
        env:
          INTEGRATION_TEST: 1
        run: poe test

      - name: Check external links in docs
        run: poe check-docs-links

      - name: Notify on failure
        if: ${{ failure() }}
        env:
          ZULIP_BOT_CREDENTIALS: ${{ secrets.ZULIP_BOT_CREDENTIALS }}
        run: |
          if [ -z "${ZULIP_BOT_CREDENTIALS}" ]; then
            echo "Skipping notify, ZULIP_BOT_CREDENTIALS is unset"
            exit 0
          fi

          curl -X POST https://beets.zulipchat.com/api/v1/messages \
            -u "${ZULIP_BOT_CREDENTIALS}" \
            -d "type=stream" \
            -d "to=github" \
            -d "subject=${GITHUB_WORKFLOW} - $(date -u +%Y-%m-%d)" \
            -d "content=[${GITHUB_WORKFLOW}#${GITHUB_RUN_NUMBER}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) failed."