Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 32 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version: 2.1

jobs:
run_tests:
build:
docker:
- image: circleci/python:3.7.4
- image: circleci/python:3.8.4
steps:
- checkout
- run:
Expand All @@ -13,13 +14,33 @@ jobs:
- run:
name: Run unit tests
command: |
pytest --junitxml=test-reports/junit.xml --html=test-reports/pytest_report.html --self-contained-html
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
workflows:
build_test:
jobs:
- run_tests

# build2:
# docker:
# - image: circleci/python:3.8.4
# steps:
# - checkout
# - run:
# name: Install Python dependencies
# command: |
# echo 'export PATH=~$PATH:~/.local/bin' >> $BASH_ENV && source $BASH_ENV
# pip install --user -r requirements.txt
# - run:
# name: Run unit tests
# command: |
# workflows:
# build_test:
# jobs:
# - run_tests

# workflows:
# version: 2

# my_workflow:
# jobs:
# -build
# -build2:
# requires:
# -build


7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.8-alpine

COPY ./requirements.txt .

RUN pip install --user -r requirements.txt

CMD ["python3","server.py"]
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ pylint == 2.4.3
pytest == 5.2.2
pytest-html == 2.0.0
flask == 1.0.0