Skip to content

chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.1 (#1364) #1276

chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.1 (#1364)

chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.1 (#1364) #1276

Workflow file for this run

name: Run all the unit tests
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install synchronous dependencies
run: |
pip install -U pip
pip install .
pip install -r requirements/testing_without_asyncio.txt
- name: Run tests without aiohttp
run: |
pytest tests/slack_bolt/ --junitxml=reports/test_slack_bolt.xml
pytest tests/scenario_tests/ --junitxml=reports/test_scenario.xml
- name: Install adapter dependencies
run: |
pip install -r requirements/adapter.txt
pip install -r requirements/adapter_testing.txt
- name: Run tests for HTTP Mode adapters
run: |
pytest tests/adapter_tests/ \
--ignore=tests/adapter_tests/socket_mode/ \
--ignore=tests/adapter_tests/asgi/ \
--junitxml=reports/test_adapter.xml
- name: Install async dependencies
run: |
pip install -r requirements/async.txt
- name: Run tests for Socket Mode adapters
run: |
# Requires async test dependencies
pytest tests/adapter_tests/socket_mode/ --junitxml=reports/test_adapter_socket_mode.xml
- name: Install all dependencies
run: |
pip install -r requirements/testing.txt
- name: Run tests for HTTP Mode adapters (ASGI)
run: |
# Requires async test dependencies
pytest tests/adapter_tests/asgi/ --junitxml=reports/test_adapter_asgi.xml
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
run: |
pytest tests/adapter_tests_async/ --junitxml=reports/test_adapter_async.xml
- name: Run asynchronous tests
run: |
pytest tests/slack_bolt_async/ --junitxml=reports/test_slack_bolt_async.xml
pytest tests/scenario_tests_async/ --junitxml=reports/test_scenario_async.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
with:
directory: ./reports/
flags: ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
notifications:
name: Regression notifications
runs-on: ubuntu-latest
needs: build
if: failure() && github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
steps:
- name: Send notifications of failing tests
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
errors: true
webhook: ${{ secrets.SLACK_REGRESSION_FAILURES_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
action_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
repository: "${{ github.repository }}"