Skip to content

Commit

Permalink
Merge pull request #37 from katie-snow/circleci-project-setup
Browse files Browse the repository at this point in the history
Circleci project setup
  • Loading branch information
katie-snow authored Dec 24, 2022
2 parents e662bab + c59ddd9 commit da1117f
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,22 @@
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

orbs:
python: circleci/python@2.1.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
ultimarc-test:
docker:
- image: cimg/python:3.6
steps:
- checkout
- run:
name: Unit Tests
command: |
python3 -m venv venv
ls
source ./venv/bin/activate
pip install --upgrade pip setuptools
pip install pip-tools
pip-sync
export PYTHONPATH='pwd'
python -m unittest discover -s tests -v

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
unittest-workflow:
ultimarc-workflow:
jobs:
- ultimarc-test
- python/test:
ensure-test-tool: true
pkg-manager: pip-dist
pypi-cache: true
test-tool: unittest
test-tool-args: discover -s tests -v
venv-cache: true

0 comments on commit da1117f

Please sign in to comment.