From 5a524478e2d3f8013702a77b14dac6aef24564f8 Mon Sep 17 00:00:00 2001 From: Mudit-Nigam <33367258+Mudit-Nigam@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:19:11 -0500 Subject: [PATCH 1/3] Create config.yml --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .circleci/config.yml 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 From aacc9c4ca773e7eb0898dc9b9ed795d2ac1b8473 Mon Sep 17 00:00:00 2001 From: Mudit-Nigam <33367258+Mudit-Nigam@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:20:29 -0500 Subject: [PATCH 2/3] Create requirements.txt --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 requirements.txt 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 From 9cc7e3a49ffa37627653f6e5513e2683bb7f6866 Mon Sep 17 00:00:00 2001 From: Mudit-Nigam <33367258+Mudit-Nigam@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:21:13 -0500 Subject: [PATCH 3/3] Create test_1.py --- tests/test_1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_1.py 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()