diff --git a/.github/workflows/extraction_tests.yml b/.github/workflows/extraction_tests.yml new file mode 100644 index 00000000..abc44abc --- /dev/null +++ b/.github/workflows/extraction_tests.yml @@ -0,0 +1,25 @@ +name: Extraction Tests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install django + pip install pylint + - name: Run migrations + run: python tracex_project/manage.py migrate + - name: Run extraction tests + run: python tracex_project/manage.py test tracex_project/extraction diff --git a/.gitignore b/.gitignore index 58deac2b..75b94116 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Content directory -tracex/extraction/content/inputs -tracex/extraction/content/outputs +tracex_project/extraction/content/inputs +tracex_project/extraction/content/outputs +tracex_project/db.sqlite3 *.log diff --git a/tracex_project/extraction/tests.py b/tracex_project/extraction/tests.py index 287f89e4..03e18a58 100644 --- a/tracex_project/extraction/tests.py +++ b/tracex_project/extraction/tests.py @@ -1,7 +1,7 @@ """Test cases for the extraction app.""" -import pandas as pd from unittest.mock import MagicMock from django.test import TestCase +import pandas as pd from tracex_project.extraction.logic.orchestrator import Orchestrator, ExtractionConfiguration from tracex_project.extraction.logic.modules.module_activity_labeler import ActivityLabeler @@ -145,9 +145,6 @@ def test_execute_return_value(self): self.assertIsInstance(result, pd.DataFrame) self.assertIn("event_type", result.columns) - def test_event_types(self): - pass - class LocationExtractorTests(TestCase): """Test cases for the LocationExtractor."""