diff --git a/.circleci/config.yml b/.circleci/config.yml index a758852..f343c72 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,36 @@ -version: 2 -jobs: - build: +version: 2.1 + +orbs: + win: circleci/windows@2.2.0 + +executors: + linux: docker: - image: circleci/python:3.8 + +jobs: + build_windows: + executor: win/default + steps: + - checkout + - restore_cache: + key: deps1-{{ .Branch }}-{{ checksum "requirements/dev.txt" }} + - run: + name: Install Python deps in a venv + command: | + pip install -r requirements/dev.txt + - save_cache: + key: deps1-{{ .Branch }}-{{ checksum "requirements/dev.txt" }} + paths: + - "venv" + - run: + command: | + tox + - store_artifacts: + path: output + + build_linux: + executor: linux steps: - checkout - restore_cache: @@ -10,7 +38,7 @@ jobs: - run: name: Install Python deps in a venv command: | - python3 -m venv venv + python3 -m venv venv: . venv/bin/activate pip install -r requirements/dev.txt - save_cache: @@ -22,4 +50,12 @@ jobs: . venv/bin/activate tox - store_artifacts: - path: output \ No newline at end of file + path: output + + +workflows: + version: 2 + build_and_test: + jobs: + - build_linux + - build_windows \ No newline at end of file diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..c1e43e6 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.7.3 diff --git a/tox.ini b/tox.ini index 8844ae3..d24eb22 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ # content of: tox.ini , put in same dir as setup.py [tox] -envlist = py38 +envlist = py37 [testenv] # install testing framework # ... or install anything else you might need here