Skip to content

Commit

Permalink
Add back Circle CI for publishing code coverage (#573)
Browse files Browse the repository at this point in the history
* add config.yml

* Bump circleci python orb version
  • Loading branch information
tqtg authored Jan 5, 2024
1 parent 031f32b commit f2d44ce
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
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

0 comments on commit f2d44ce

Please sign in to comment.