From 1d42c642dd869a7a21b04bc9d4937aac6324451f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 23 Jun 2025 11:36:52 -0400 Subject: [PATCH 1/3] made rss file! --- src/ingest/bbc_rss.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/ingest/bbc_rss.py diff --git a/src/ingest/bbc_rss.py b/src/ingest/bbc_rss.py new file mode 100644 index 0000000..e69de29 From efc387780871e825f64a5117d40b4981696f8614 Mon Sep 17 00:00:00 2001 From: Chloe Date: Mon, 23 Jun 2025 11:43:16 -0400 Subject: [PATCH 2/3] hello world --- src/ingest/bbc_rss.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ingest/bbc_rss.py b/src/ingest/bbc_rss.py index e69de29..1dc45ac 100644 --- a/src/ingest/bbc_rss.py +++ b/src/ingest/bbc_rss.py @@ -0,0 +1 @@ +print("Hello World!") \ No newline at end of file From 024eb9cd8a0e22be2a9b65ce0b5ce21493f9c965 Mon Sep 17 00:00:00 2001 From: Grace Date: Mon, 23 Jun 2025 09:49:19 -0700 Subject: [PATCH 3/3] Setting up unit testing/github action framework --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ requirements.txt | 0 src/__init__.py | 0 tests/test_trivial.py | 6 ++++++ 4 files changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 requirements.txt create mode 100644 src/__init__.py create mode 100644 tests/test_trivial.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9fbdeff --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + pull_request: + branches: [ Development ] # or whatever your main branch is + push: + branches: [ Development ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + - name: Run tests + run: | + pytest diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_trivial.py b/tests/test_trivial.py new file mode 100644 index 0000000..bacf00e --- /dev/null +++ b/tests/test_trivial.py @@ -0,0 +1,6 @@ +#this is a dummy test for checking unit test system +import sys +sys.path.insert(0, 'src') + +def test_add(): + assert 1 + 1 == 2