Skip to content

Commit

Permalink
Implement Github workflow action to run pytest for thw workflow_engine
Browse files Browse the repository at this point in the history
module.
  • Loading branch information
Marcelo Ariel Hamra committed Mar 8, 2024
1 parent c1e3b4f commit a5a544e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/workflow-engine-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Workflow Engine unit tests

on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/workflow-engine-unit-tests.yml'
- 'depoyability/modules/workflow_engine/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
env:
PYTHONPATH: /home/runner/work/wazuh-qa/wazuh-qa/deployability/modules
steps:
- uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'deployability/modules/workflow_engine/requirements-dev.txt'

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r deployability/modules/workflow_engine/requirements-dev.txt --no-build-isolation
- name: Run workflow_engine tests
run: python -m pytest deployability/modules/workflow_engine
2 changes: 2 additions & 0 deletions deployability/modules/workflow_engine/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ../../deps/requirements.txt
-r ../../deps/remote_requirements.txt

0 comments on commit a5a544e

Please sign in to comment.