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

Migrate to codecov's orb from the deprecated uploader #158

Merged
merged 2 commits into from
May 23, 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
17 changes: 12 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ parameters:

orbs:
win: circleci/windows@2.2.0
codecov: codecov/codecov@3

environment:
PIP_PROGRESS_BAR: 'off'
Expand Down Expand Up @@ -92,13 +93,13 @@ jobs:

- run: &run-python-tests
name: Run python tests
command: env/bin/coverage run -m unittest discover

- run: &upload-python-code-coverage
name: Upload code coverage
command: |
. env/bin/activate
codecov # calls `coverage xml`, so we must activate venv
coverage run -m unittest discover
coverage xml

- codecov/upload: &upload-python-code-coverage
file: coverage.xml

test-macos:
parameters:
Expand Down Expand Up @@ -300,6 +301,7 @@ workflows:
dimod-preprocessing-version: "dimod~=0.10.0 dwave-preprocessing~=0.3.0"
- python-version: "3.11.0"
dimod-preprocessing-version: "dimod~=0.11.0 dwave-preprocessing~=0.4.0"
context: &ctx-build "ocean-build"
filters: &always-run # run on `tags` in addition to `branches` default (deploy dep)
tags:
only: /.*/
Expand Down Expand Up @@ -330,24 +332,28 @@ workflows:
system-client-version: "dwave-system~=1.8.0 dwave-cloud-client==0.8.7"
- python-version: "3.11.0"
system-client-version: "dwave-system~=1.9.0 dwave-cloud-client==0.9.0"
context: *ctx-build
filters:
<<: *always-run

- test-macos:
matrix:
parameters:
python-version: *python-versions
context: *ctx-build
filters:
<<: *always-run

- test-windows:
matrix:
parameters:
python-version: *python-versions
context: *ctx-build
filters:
<<: *always-run

- test-docs:
context: *ctx-build
filters:
<<: *always-run

Expand All @@ -356,6 +362,7 @@ workflows:
- test-linux
- test-macos
- test-windows
context: ocean-publish
filters:
tags:
only: /^[0-9]+(\.[0-9]+)*((\.dev|rc)([0-9]+)?)?$/
Expand Down
1 change: 0 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
coverage
codecov

# temporary fix for https://github.com/kevin1024/vcrpy/issues/688 is to
# avoid urllib 2.x
Expand Down