From fb54fb5affa8914828b21c4ed6a0920fea79f53b Mon Sep 17 00:00:00 2001 From: hangpersonal Date: Tue, 26 Aug 2025 00:35:18 -0700 Subject: [PATCH] Update repo --- .gitea/workflows/ci.yml | 2 +- pytest.ini | 4 ++++ app/requirements.txt => requirements.txt | 0 src/mycode.py | 0 tests/test_smoke.py | 3 +++ 5 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 pytest.ini rename app/requirements.txt => requirements.txt (100%) create mode 100644 src/mycode.py create mode 100644 tests/test_smoke.py 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