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
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest==6.2.5
coverage==6.0.2
requests==2.26.0
flask==2.1.1
13 changes: 13 additions & 0 deletions tests/test_1.py
Original file line number Diff line number Diff line change
@@ -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()