This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor setup.py and requirements.txt, add tests directory and circleci config
- Loading branch information
1 parent
f3597fa
commit b54f306
Showing
4 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
jobs: | ||
data: | ||
docker: | ||
- image: "circleci/python:3.6.1" | ||
steps: | ||
- checkout: | ||
path: ~/repo | ||
- restore_cache: | ||
key: "deps1-{{ .Branch }}-{{ checksum \"requirements.txt\" }}" | ||
- run: | ||
command: | | ||
python3 -m venv .env | ||
. .env/bin/activate | ||
pip install -r requirements.txt | ||
pip install -e .[development] | ||
name: "Installing dependencies" | ||
- save_cache: | ||
key: "deps1-{{ .Branch }}-{{ checksum \"requirements.txt\" }}" | ||
paths: | ||
- .env | ||
- run: | ||
command: | | ||
. .env/bin/activate | ||
# pylint src tests -- Major overhaul needed to not fail linting, not including linting in tests for now | ||
# mypy src tests | ||
pytest --cov=data tests | ||
name: "Running tests" | ||
working_directory: ~/repo | ||
workflows: | ||
version: 2 | ||
pulse: | ||
jobs: | ||
- data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
cfenv==0.5.2 | ||
flask==0.12 | ||
gunicorn==19.6.0 | ||
newrelic==2.86.2.68 | ||
pyyaml==3.12 | ||
python-slugify==1.2.1 | ||
tinydb==3.2.1 | ||
ujson==1.35 | ||
waitress==1.0.1 | ||
flask-compress==1.4.0 | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def test_nothing() -> None: | ||
assert True |