From b7b4de7478b90574cd27a567130cced01650fbc8 Mon Sep 17 00:00:00 2001 From: eduardormorais Date: Tue, 16 Sep 2025 13:35:47 -0300 Subject: Feature/9792011653 - Inclusion of workflow for executing unit tests in pull requests --- .github/workflows/python-pr-validation.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/python-pr-validation.yml (limited to '.github/workflows/python-pr-validation.yml') diff --git a/.github/workflows/python-pr-validation.yml b/.github/workflows/python-pr-validation.yml new file mode 100644 index 0000000..51a73c6 --- /dev/null +++ b/.github/workflows/python-pr-validation.yml @@ -0,0 +1,31 @@ +name: Python Pull Request Validation Workflow + +on: + pull_request: + branches: [ "main", "master" ] + +jobs: + Validation: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python 3.12 + uses: actions/setup-python@v2 + with: + python-version: "3.12" + architecture: "x64" + + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip install poetry + pip install pytest + poetry config virtualenvs.create false + poetry install --no-interaction --no-ansi + + - name: Python Run Tests + run: | + pytest -v -o junit_family=xunit1 --cov=. --cov-report xml:tests/coverage.xml --junitxml=tests/nosetests.xml + -- cgit v1.2.3