-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back Circle CI for publishing code coverage (#573)
* add config.yml * Bump circleci python orb version
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow will build and test, then publish code coverage to codecov.io | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/[email protected] | ||
|
||
jobs: | ||
build-and-test: | ||
docker: | ||
- image: cimg/python:3.10.2 | ||
steps: | ||
- checkout | ||
- python/install-packages: | ||
pkg-manager: pip | ||
- run: | ||
name: Install dependencies | ||
no_output_timeout: 30m | ||
command: | | ||
sudo pip install --upgrade pip | ||
sudo pip install --only-binary=numpy,scipy numpy==1.22.4 scipy Cython pytest pytest-cov codecov | ||
sudo pip install -e .[tests] | ||
- run: | ||
name: Run tests | ||
no_output_timeout: 30m | ||
# This assumes pytest is installed via the install-package step above | ||
command: | | ||
python -m pytest --cov=cornac | ||
codecov || echo "codecov failed" | ||
workflows: | ||
codecov: | ||
jobs: | ||
- build-and-test |