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 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