Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Update codecov coverage upload to use GitHub Action (CI) #20817

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ if [ "$USE_CONDA" = "true" ]; then
# Install test dependencies
micromamba install --file requirements/tests.yml

# To check our manifest and coverage
micromamba install check-manifest codecov -q -y
# To check our manifest
micromamba install check-manifest -q -y

# Remove pylsp before installing its subrepo below
micromamba remove --force python-lsp-server python-lsp-server-base -y
Expand All @@ -39,8 +39,8 @@ else
# Install QtAwesome from Github
pip install git+https://github.com/spyder-ide/qtawesome.git

# To check our manifest and coverage
pip install -q check-manifest codecov
# To check our manifest
pip install -q check-manifest

# This allows the test suite to run more reliably on Linux
if [ "$OS" = "linux" ]; then
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,7 @@ jobs:
bash -l .github/scripts/run_tests.sh || \
bash -l .github/scripts/run_tests.sh
- name: Coverage
shell: bash -l {0}
run: codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
6 changes: 4 additions & 2 deletions .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,7 @@ jobs:
bash -l .github/scripts/run_tests.sh || \
bash -l .github/scripts/run_tests.sh
- name: Coverage
shell: bash -l {0}
run: codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
6 changes: 4 additions & 2 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ jobs:
bash -l .github/scripts/run_tests.sh || \
bash -l .github/scripts/run_tests.sh
- name: Coverage
shell: bash -l {0}
run: codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run_pytest(run_slow=False, extra_args=None):

if CI:
# Show coverage
pytest_args += ['--cov=spyder', '--no-cov-on-fail']
pytest_args += ['--cov=spyder', '--no-cov-on-fail', '--cov-report=xml']

# To display nice tests resume in Azure's web page
if os.environ.get('AZURE', None) is not None:
Expand Down