From 14b7f7cdb0244a10880101b2aea03405bad52299 Mon Sep 17 00:00:00 2001 From: Pulind Gadhia Date: Mon, 30 Mar 2026 18:31:33 +0530 Subject: [PATCH 1/2] Added basic tests for repository structure --- tests/test_basic.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test_basic.py diff --git a/tests/test_basic.py b/tests/test_basic.py new file mode 100644 index 0000000..d12df09 --- /dev/null +++ b/tests/test_basic.py @@ -0,0 +1,7 @@ +import os + +def test_repository_structure(): + assert os.path.exists("README.md") + +def test_docs_folder_exists(): + assert os.path.exists("docs") \ No newline at end of file From b8ca6eef2e93421be021731425fed15fff4a7a83 Mon Sep 17 00:00:00 2001 From: Pulind Gadhia Date: Mon, 30 Mar 2026 22:01:40 +0530 Subject: [PATCH 2/2] Added CI setup with pytest and GitHub Actions --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ pytest.ini | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 pytest.ini diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d09a96f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Run Tests + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install pytest + run: pip install pytest + + - name: Run tests + run: pytest \ No newline at end of file diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..de19c9f --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +testpaths = tests \ No newline at end of file