Skip to content

Commit 82a98f6

Browse files
Update code_cov upload method (#752)
1 parent 71c89cc commit 82a98f6

File tree

4 files changed

+99
-95
lines changed

4 files changed

+99
-95
lines changed

.github/workflows/codecov.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run codecov
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77

88
jobs:
@@ -11,25 +11,29 @@ jobs:
1111
timeout-minutes: 10
1212
strategy:
1313
matrix:
14-
python-version: ['3.9']
14+
python-version: ["3.9"]
1515
env:
1616
# default: multiprocessing
1717
# threading is more stable on GitHub Actions
1818
BOLT_PYTHON_MOCK_SERVER_MODE: threading
1919
steps:
20-
- uses: actions/checkout@v2
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
- name: Install dependencies
26-
run: |
27-
python setup.py install
28-
pip install -U pip
29-
pip install -e ".[async]"
30-
pip install -e ".[adapter]"
31-
pip install -e ".[testing]"
32-
pip install -e ".[adapter_testing]"
33-
- name: Run all tests for codecov
34-
run: |
35-
pytest --cov=slack_bolt/ && bash <(curl -s https://codecov.io/bash)
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python setup.py install
28+
pip install -U pip
29+
pip install -e ".[async]"
30+
pip install -e ".[adapter]"
31+
pip install -e ".[testing]"
32+
pip install -e ".[adapter_testing]"
33+
- name: Run all tests for codecov
34+
run: |
35+
pytest --cov=./slack_bolt/ --cov-report=xml
36+
- name: Upload coverage to Codecov
37+
uses: codecov/codecov-action@v3
38+
with:
39+
fail_ci_if_error: true

.github/workflows/flake8.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run flake8 validation
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77

88
jobs:
@@ -11,13 +11,13 @@ jobs:
1111
timeout-minutes: 20
1212
strategy:
1313
matrix:
14-
python-version: ['3.9']
14+
python-version: ["3.9"]
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Run flake8 verification
22-
run: |
23-
./scripts/run_flake8.sh
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Run flake8 verification
22+
run: |
23+
./scripts/run_flake8.sh

.github/workflows/pytype.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run pytype validation
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77

88
jobs:
@@ -11,13 +11,13 @@ jobs:
1111
timeout-minutes: 20
1212
strategy:
1313
matrix:
14-
python-version: ['3.9']
14+
python-version: ["3.9"]
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Run pytype verification
22-
run: |
23-
./scripts/run_pytype.sh
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Run pytype verification
22+
run: |
23+
./scripts/run_pytype.sh

.github/workflows/tests.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run all the unit tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77

88
jobs:
@@ -11,64 +11,64 @@ jobs:
1111
timeout-minutes: 10
1212
strategy:
1313
matrix:
14-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
14+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1515
env:
1616
# default: multiprocessing
1717
# threading is more stable on GitHub Actions
1818
BOLT_PYTHON_MOCK_SERVER_MODE: threading
1919
steps:
20-
- uses: actions/checkout@v2
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
- name: Install dependencies
26-
run: |
27-
python setup.py install
28-
pip install -U pip
29-
pip install -e ".[testing_without_asyncio]"
30-
- name: Run tests without aiohttp
31-
run: |
32-
pytest tests/slack_bolt/
33-
pytest tests/scenario_tests/
34-
- name: Run tests for Socket Mode adapters
35-
run: |
36-
pip install -e ".[adapter]"
37-
pip install -e ".[adapter_testing]"
38-
pytest tests/adapter_tests/socket_mode/
39-
- name: Run tests for HTTP Mode adapters (AWS)
40-
run: |
41-
pytest tests/adapter_tests/aws/
42-
- name: Run tests for HTTP Mode adapters (Bottle)
43-
run: |
44-
pytest tests/adapter_tests/bottle/
45-
- name: Run tests for HTTP Mode adapters (CherryPy)
46-
run: |
47-
pytest tests/adapter_tests/cherrypy/
48-
- name: Run tests for HTTP Mode adapters (Django)
49-
run: |
50-
pytest tests/adapter_tests/django/
51-
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
52-
run: |
53-
pytest tests/adapter_tests/falcon/
54-
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
55-
run: |
56-
pip install "falcon<3"
57-
pytest tests/adapter_tests/falcon/
58-
- name: Run tests for HTTP Mode adapters (Flask)
59-
run: |
60-
pytest tests/adapter_tests/flask/
61-
- name: Run tests for HTTP Mode adapters (Pyramid)
62-
run: |
63-
pytest tests/adapter_tests/pyramid/
64-
- name: Run tests for HTTP Mode adapters (Starlette)
65-
run: |
66-
pytest tests/adapter_tests/starlette/
67-
- name: Run tests for HTTP Mode adapters (Tornado)
68-
run: |
69-
pytest tests/adapter_tests/tornado/
70-
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
71-
run: |
72-
pip install -e ".[async]"
73-
pip install "falcon>=3,<4"
74-
pytest tests/adapter_tests_async/
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python setup.py install
28+
pip install -U pip
29+
pip install -e ".[testing_without_asyncio]"
30+
- name: Run tests without aiohttp
31+
run: |
32+
pytest tests/slack_bolt/
33+
pytest tests/scenario_tests/
34+
- name: Run tests for Socket Mode adapters
35+
run: |
36+
pip install -e ".[adapter]"
37+
pip install -e ".[adapter_testing]"
38+
pytest tests/adapter_tests/socket_mode/
39+
- name: Run tests for HTTP Mode adapters (AWS)
40+
run: |
41+
pytest tests/adapter_tests/aws/
42+
- name: Run tests for HTTP Mode adapters (Bottle)
43+
run: |
44+
pytest tests/adapter_tests/bottle/
45+
- name: Run tests for HTTP Mode adapters (CherryPy)
46+
run: |
47+
pytest tests/adapter_tests/cherrypy/
48+
- name: Run tests for HTTP Mode adapters (Django)
49+
run: |
50+
pytest tests/adapter_tests/django/
51+
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
52+
run: |
53+
pytest tests/adapter_tests/falcon/
54+
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
55+
run: |
56+
pip install "falcon<3"
57+
pytest tests/adapter_tests/falcon/
58+
- name: Run tests for HTTP Mode adapters (Flask)
59+
run: |
60+
pytest tests/adapter_tests/flask/
61+
- name: Run tests for HTTP Mode adapters (Pyramid)
62+
run: |
63+
pytest tests/adapter_tests/pyramid/
64+
- name: Run tests for HTTP Mode adapters (Starlette)
65+
run: |
66+
pytest tests/adapter_tests/starlette/
67+
- name: Run tests for HTTP Mode adapters (Tornado)
68+
run: |
69+
pytest tests/adapter_tests/tornado/
70+
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
71+
run: |
72+
pip install -e ".[async]"
73+
pip install "falcon>=3,<4"
74+
pytest tests/adapter_tests_async/

0 commit comments

Comments
 (0)