diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c8e7b46..f2dd597 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: python-version: "3.10" - name: Install dependencies - run: pip install -r app/requirements.txt + run: pip install -r requirements.txt - name: Run tests run: pytest -v \ No newline at end of file diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..6605410 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,4 @@ +[pytest] +testpaths = tests +python_files = test_*.py +python_functions = test_* diff --git a/app/requirements.txt b/requirements.txt similarity index 100% rename from app/requirements.txt rename to requirements.txt diff --git a/src/mycode.py b/src/mycode.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_smoke.py b/tests/test_smoke.py new file mode 100644 index 0000000..cea8453 --- /dev/null +++ b/tests/test_smoke.py @@ -0,0 +1,3 @@ +# tests/test_smoke.py +def test_smoke(): + assert True \ No newline at end of file