-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
name: Run codecov | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
# Avoiding -latest due to https://github.com/actions/setup-python/issues/162 | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
env: | ||
# default: multiprocessing | ||
# threading is more stable on GitHub Actions | ||
BOLT_PYTHON_MOCK_SERVER_MODE: threading | ||
BOLT_PYTHON_CODECOV_RUNNING: "1" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python setup.py install | ||
pip install -U pip | ||
pip install -e ".[async]" | ||
pip install -e ".[adapter]" | ||
pip install -e ".[testing]" | ||
pip install -e ".[adapter_testing]" | ||
- name: Run all tests for codecov | ||
run: | | ||
pytest --cov=./slack_bolt/ --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: true | ||
verbose: true | ||
# TODO: This CI job hangs as of April 2023 | ||
#name: Run codecov | ||
# | ||
#on: | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
# | ||
#jobs: | ||
# build: | ||
# # Avoiding -latest due to https://github.com/actions/setup-python/issues/162 | ||
# runs-on: ubuntu-20.04 | ||
# timeout-minutes: 10 | ||
# strategy: | ||
# matrix: | ||
# python-version: ["3.11"] | ||
# env: | ||
# # default: multiprocessing | ||
# # threading is more stable on GitHub Actions | ||
# BOLT_PYTHON_MOCK_SERVER_MODE: threading | ||
# BOLT_PYTHON_CODECOV_RUNNING: "1" | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set up Python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
# - name: Install dependencies | ||
# run: | | ||
# python setup.py install | ||
# pip install -U pip | ||
# pip install -e ".[async]" | ||
# pip install -e ".[adapter]" | ||
# pip install -e ".[testing]" | ||
# pip install -e ".[adapter_testing]" | ||
# - name: Run all tests for codecov | ||
# run: | | ||
# pytest --cov=./slack_bolt/ --cov-report=xml | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# fail_ci_if_error: true | ||
# verbose: true |