diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..72a86e1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2.1 + +jobs: + build: + docker: + - image: circleci/python:3.9 # Choose the Python version you need + working_directory: ~/repo + + steps: + - checkout + + # Install dependencies + - run: + name: Install dependencies + command: | + python -m pip install --upgrade pip + pip install -r requirements.txt # Assuming you have a requirements.txt file + + # Run tests + - run: + name: Run tests + command: | + python -m unittest tests/test_1.py # Adjust this command according to your testing framework + +workflows: + version: 2 + build_and_test: + jobs: + - build diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6dceb51 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +pytest==6.2.5 +coverage==6.0.2 +requests==2.26.0 +flask==2.1.1 diff --git a/tests/test_1.py b/tests/test_1.py new file mode 100644 index 0000000..ce196f6 --- /dev/null +++ b/tests/test_1.py @@ -0,0 +1,13 @@ +# test_google.py + +import unittest + +class Test1(unittest.TestCase): + + def test_standard_date(self): + print("Hello World") + + assert 2 + 2 == 4 + +if __name__ == '__main__': + unittest.main()