Skip to content

Commit

Permalink
✨ add github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PitButtchereit committed Apr 2, 2024
1 parent 32eff0f commit 7e7c125
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/extraction_tests.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 1 addition & 4 deletions tracex_project/extraction/tests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 7e7c125

Please sign in to comment.