test: fix/simplify --all
cli test to work with new languages codes …
#16
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
name: Upload Code Coverage | |
# For the Codecov to do a code coverage diff in a PR, | |
# it must have a code coverage of the PR base branch | |
# (i.e. typically main). This Action runs tests on main | |
# so the code coverage results can be uploaded and | |
# a diff to appear in PRs. | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'gtts/**.py' | |
jobs: | |
test: | |
name: Unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[tests] | |
- name: Unit Tests | |
run: pytest -v --cov=gtts --cov-report=xml | |
env: | |
TEST_LANGS: en | |
- name: Upload Coverage Report | |
uses: codecov/[email protected] |