Skip to content

Commit

Permalink
Automate unit tests running using GitHub workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Ariel Hamra committed Apr 3, 2024
1 parent 4110dad commit 6602220
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/provision-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Provision module unit tests

on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/provision-unit-tests.yml'
- 'deployability/modules/provision/**'

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
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/deps/remote_requirements.txt'

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r deployability/deps/remote_requirements.txt --no-build-isolation
- name: Run Provision module tests
run: python -m pytest deployability/modules/provision

0 comments on commit 6602220

Please sign in to comment.