Skip to content

Commit

Permalink
Eh/code test coverage (#94)
Browse files Browse the repository at this point in the history
* Adding code coverage

* Fix coverage testing

* Switch from pytest to coverage

* Adding circleci config
  • Loading branch information
euxhenh authored Aug 4, 2023
1 parent a76912f commit 2e15fdb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This config was automatically generated from your source code
# Stacks detected: deps:python:.
version: 2.1
orbs:
python: circleci/python@2
jobs:
test-python:
# Install dependencies and run tests
docker:
- image: cimg/python:3.10-node
steps:
- checkout
- python/install-packages
- python/install-packages:
args: pytest
pkg-manager: pip
pypi-cache: false
- run:
name: Run tests
command: pytest --junitxml=junit.xml
- store_test_results:
path: junit.xml
deploy:
# This is an example deploy job, not actually used by the workflow
docker:
- image: cimg/base:stable
steps:
# Replace this with steps to deploy to users
- run:
name: deploy
command: '#e.g. ./deploy.sh'
workflows:
build-and-test:
jobs:
- test-python
# - deploy:
# requires:
# - test-python

0 comments on commit 2e15fdb

Please sign in to comment.