diff --git a/.circleci/config.yml b/.circleci/config.yml index 0125257..376ae86 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e4023e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.8-alpine + +COPY ./requirements.txt . + +RUN pip install --user -r requirements.txt + +CMD ["python3","server.py"] diff --git a/requirements.txt b/requirements.txt index 2834515..7d0a62f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ pylint == 2.4.3 pytest == 5.2.2 pytest-html == 2.0.0 flask == 1.0.0 -