Skip to content

Commit

Permalink
add config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tqtg committed Dec 27, 2023
1 parent eabdd2d commit 63c2d27
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 63c2d27

Please sign in to comment.