Ver Fonte

feat(sqlalchemy): execute tests in github actions

Jonathan Rohde há 10 meses atrás
pai
commit
827b1e58e9
1 ficheiros alterados com 22 adições e 0 exclusões
  1. 22 0
      .github/workflows/integration-test.yml

+ 22 - 0
.github/workflows/integration-test.yml

@@ -67,6 +67,28 @@ jobs:
           path: compose-logs.txt
           path: compose-logs.txt
           if-no-files-found: ignore
           if-no-files-found: ignore
 
 
+  pytest:
+    name: Run backend tests
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Set up Python
+        uses: actions/setup-python@v4
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install -r backend/requirements.txt
+
+      - name: pytest run
+        run: |
+          ls -al
+          cd backend
+          PYTHONPATH=. pytest . -o log_cli=true -o log_cli_level=INFO
+
   migration_test:
   migration_test:
     name: Run Migration Tests
     name: Run Migration Tests
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest