diff --git a/.github/workflows/_autotests.yml b/.github/workflows/_autotests.yml index 653921a5..bf230280 100644 --- a/.github/workflows/_autotests.yml +++ b/.github/workflows/_autotests.yml @@ -48,6 +48,7 @@ jobs: python templates/gen.py - name: Start impulse container + if: github.base_ref == 'master' env: SLACK_VERIFICATION_TOKEN: ${{ secrets.AUTOTESTS_SLACK_VERIFICATION_TOKEN }} SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.AUTOTESTS_SLACK_BOT_USER_OAUTH_TOKEN }} @@ -68,6 +69,7 @@ jobs: ghcr.io/eslupmi/impulse:"${IMPULSE_IMAGE_TAG}" - name: Wait for impulse container to be ready + if: github.base_ref == 'master' run: | for i in $(seq 1 60); do curl -sf "http://localhost:${{ matrix.port }}/${{ matrix.messenger_type }}/readyz" && exit 0 @@ -96,13 +98,13 @@ jobs: source venv/bin/activate MESSENGER_TYPE="${{ matrix.messenger_type }}" MESSENGER_CLASS="${MESSENGER_TYPE^}" - pytest --maxfail=1 --exitfirst -v -s "tests/test_${{ matrix.messenger_type }}_application.py::Test${MESSENGER_CLASS}Application" + python -m autotest.runner --suite "${{ github.base_ref == 'master' && 'external' || 'internal' }}" --messenger "${{ matrix.messenger_type }}" - name: Stop impulse container - if: always() + if: always() && github.base_ref == 'master' run: | docker rm -f impulse-autotests-${{ matrix.messenger_type }}-${{ github.run_id }} || true - + - name: Cleanup workspace if: always() run: | diff --git a/.github/workflows/_migration.yml b/.github/workflows/_migration.yml index 010b1e01..27aef7cc 100644 --- a/.github/workflows/_migration.yml +++ b/.github/workflows/_migration.yml @@ -30,9 +30,8 @@ jobs: steps: - name: Get latest release id: latest - env: - GH_TOKEN: ${{ github.token }} - run: echo "tag=$(gh api "repos/${{ github.repository }}/releases/latest" --jq .tag_name)" >> "$GITHUB_OUTPUT" + run: | + echo "tag=$(curl -sSf -H "Accept: application/json" "https://api.github.com/repos/${{ github.repository }}/releases/latest" | grep -m1 '"tag_name"' | cut -d'"' -f4)" >> "$GITHUB_OUTPUT" - name: Backup incidents migration uses: appleboy/ssh-action@v1.0.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index c76c9735..5238daa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v3.7.1 +Changes: +- Fix `--check` to exit after validating the configuration + ## v3.7.0 Changes: - Added templates for all [thread messages](https://docs.impulse.bot/stable/concepts/templates/#thread-messages) diff --git a/main.py b/main.py index 3c3ad322..3e522ead 100644 --- a/main.py +++ b/main.py @@ -40,6 +40,7 @@ args = parse_arguments() if args.check: validate_config_only() + raise SystemExit(0) setup_sighup_forwarder()