Skip to content

Commit

Permalink
Update code_cov upload method (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin authored Oct 28, 2022
1 parent 71c89cc commit 82a98f6
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 95 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run codecov

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -11,25 +11,29 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ['3.9']
python-version: ["3.9"]
env:
# default: multiprocessing
# threading is more stable on GitHub Actions
BOLT_PYTHON_MOCK_SERVER_MODE: threading
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
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/ && bash <(curl -s https://codecov.io/bash)
- 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
20 changes: 10 additions & 10 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run flake8 validation

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -11,13 +11,13 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: ['3.9']
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run flake8 verification
run: |
./scripts/run_flake8.sh
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run flake8 verification
run: |
./scripts/run_flake8.sh
20 changes: 10 additions & 10 deletions .github/workflows/pytype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run pytype validation

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -11,13 +11,13 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: ['3.9']
python-version: ["3.9"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run pytype verification
run: |
./scripts/run_pytype.sh
114 changes: 57 additions & 57 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run all the unit tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -11,64 +11,64 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
env:
# default: multiprocessing
# threading is more stable on GitHub Actions
BOLT_PYTHON_MOCK_SERVER_MODE: threading
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python setup.py install
pip install -U pip
pip install -e ".[testing_without_asyncio]"
- name: Run tests without aiohttp
run: |
pytest tests/slack_bolt/
pytest tests/scenario_tests/
- name: Run tests for Socket Mode adapters
run: |
pip install -e ".[adapter]"
pip install -e ".[adapter_testing]"
pytest tests/adapter_tests/socket_mode/
- name: Run tests for HTTP Mode adapters (AWS)
run: |
pytest tests/adapter_tests/aws/
- name: Run tests for HTTP Mode adapters (Bottle)
run: |
pytest tests/adapter_tests/bottle/
- name: Run tests for HTTP Mode adapters (CherryPy)
run: |
pytest tests/adapter_tests/cherrypy/
- name: Run tests for HTTP Mode adapters (Django)
run: |
pytest tests/adapter_tests/django/
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
run: |
pytest tests/adapter_tests/falcon/
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
run: |
pip install "falcon<3"
pytest tests/adapter_tests/falcon/
- name: Run tests for HTTP Mode adapters (Flask)
run: |
pytest tests/adapter_tests/flask/
- name: Run tests for HTTP Mode adapters (Pyramid)
run: |
pytest tests/adapter_tests/pyramid/
- name: Run tests for HTTP Mode adapters (Starlette)
run: |
pytest tests/adapter_tests/starlette/
- name: Run tests for HTTP Mode adapters (Tornado)
run: |
pytest tests/adapter_tests/tornado/
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
run: |
pip install -e ".[async]"
pip install "falcon>=3,<4"
pytest tests/adapter_tests_async/
- 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 ".[testing_without_asyncio]"
- name: Run tests without aiohttp
run: |
pytest tests/slack_bolt/
pytest tests/scenario_tests/
- name: Run tests for Socket Mode adapters
run: |
pip install -e ".[adapter]"
pip install -e ".[adapter_testing]"
pytest tests/adapter_tests/socket_mode/
- name: Run tests for HTTP Mode adapters (AWS)
run: |
pytest tests/adapter_tests/aws/
- name: Run tests for HTTP Mode adapters (Bottle)
run: |
pytest tests/adapter_tests/bottle/
- name: Run tests for HTTP Mode adapters (CherryPy)
run: |
pytest tests/adapter_tests/cherrypy/
- name: Run tests for HTTP Mode adapters (Django)
run: |
pytest tests/adapter_tests/django/
- name: Run tests for HTTP Mode adapters (Falcon 3.x)
run: |
pytest tests/adapter_tests/falcon/
- name: Run tests for HTTP Mode adapters (Falcon 2.x)
run: |
pip install "falcon<3"
pytest tests/adapter_tests/falcon/
- name: Run tests for HTTP Mode adapters (Flask)
run: |
pytest tests/adapter_tests/flask/
- name: Run tests for HTTP Mode adapters (Pyramid)
run: |
pytest tests/adapter_tests/pyramid/
- name: Run tests for HTTP Mode adapters (Starlette)
run: |
pytest tests/adapter_tests/starlette/
- name: Run tests for HTTP Mode adapters (Tornado)
run: |
pytest tests/adapter_tests/tornado/
- name: Run tests for HTTP Mode adapters (asyncio-based libraries)
run: |
pip install -e ".[async]"
pip install "falcon>=3,<4"
pytest tests/adapter_tests_async/

0 comments on commit 82a98f6

Please sign in to comment.