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/src/ingest/bbc_rss.py b/src/ingest/bbc_rss.py new file mode 100644 index 0000000..1dc45ac --- /dev/null +++ b/src/ingest/bbc_rss.py @@ -0,0 +1 @@ +print("Hello World!") \ No newline at end of file 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