feat(tests): Added tests to PR and Prod workflows

This commit is contained in:
ribardej
2025-10-21 15:44:33 +02:00
parent 391e9da0c4
commit 76eb2cce41
2 changed files with 46 additions and 0 deletions

View File

@@ -9,6 +9,29 @@ permissions:
pull-requests: write
jobs:
test:
name: Run Python Tests
if: github.event.action != 'closed'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with pytest
run: pytest
working-directory: ./7project/backend
build:
if: github.event.action != 'closed'
name: Build and push image (reusable)