Skip to content

Commit ba3ca95

Browse files
authored
Change the Python version to run pytype
1 parent a00a3e9 commit ba3ca95

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci-build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,22 @@ jobs:
4545
pytest tests/scenario_tests_async/
4646
pytest tests/adapter_tests_async/
4747
fi
48-
- name: Run pytype verification & codecov
48+
- name: Run pytype verification
49+
run: |
50+
python_version=`python -V`
51+
if [ ${python_version:7:3} == "3.8" ]; then
52+
pip install -e ".[async]"
53+
pip install -e ".[adapter]"
54+
pip install "pytype" && pytype slack_bolt/
55+
fi
56+
57+
- name: Run all tests for codecov
4958
run: |
5059
python_version=`python -V`
5160
# TODO: As Python 3.6 works the most stably on GitHub Actions,
5261
# we use the version for code coverage and async tests
5362
if [ ${python_version:7:3} == "3.6" ]; then
5463
pip install -e ".[async]"
5564
pip install -e ".[adapter]"
56-
pip install "pytype" && pytype slack_bolt/
5765
pytest --cov=slack_bolt/ && bash <(curl -s https://codecov.io/bash)
5866
fi

0 commit comments

Comments
 (0)