Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
47 changes: 39 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,47 @@ jobs:
command: |
echo 'export PATH=~$PATH:~/.local/bin' >> $BASH_ENV && source $BASH_ENV
pip install --user -r requirements.txt
- 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
# - 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.4s
# 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