From 63c2d278a26d8b529dcf8591624b5f25d16bceed Mon Sep 17 00:00:00 2001 From: tqtg Date: Wed, 27 Dec 2023 10:10:05 -0800 Subject: [PATCH 1/2] add config.yml --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..61352960 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +# This workflow will build and test, then publish code coverage to codecov.io +version: 2.1 + +orbs: + python: circleci/python@1.5.0 + +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 From 2d18c5afdb7ccf96f0b994f47b253f5fe9c9768d Mon Sep 17 00:00:00 2001 From: Quoc-Tuan Truong Date: Fri, 5 Jan 2024 11:51:32 -0800 Subject: [PATCH 2/2] Bump circleci python orb version --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 61352960..cdc28cb4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 orbs: - python: circleci/python@1.5.0 + python: circleci/python@2.1.1 jobs: build-and-test: