Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
PACKAGE_NAME: 'ansys-edb-core'
DOCUMENTATION_CNAME: 'edb.core.docs.pyansys.com'
MAIN_PYTHON_VERSION: '3.10'
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -80,6 +81,27 @@ jobs:
# Only the tox environment specified in the tox.ini gh-actions is run
run: tox -e test -- --ignore=tests/e2e

tests-e2e:
name: End to end tests and coverage
runs-on: [ self-hosted, Windows, pyedb-core ]
if: startsWith(github.event.pull_request.base.ref, 'release')

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade .[tests]
python -m pip install --upgrade tox-gh-actions

- name: Test with tox
# Only the tox environment specified in the tox.ini gh-actions is run
run: tox -e test -- tests/e2e

doc-build:
name: "Doc build"
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ install_command =
description = Checks for project unit tests
setenv =
PYTEST_EXTRA_ARGS = --junitxml=junit/test-results.xml
ANSYSEM_EDB_EXE_DIR = {env:ANSYSEM_ROOT251}
ANSYSLMD_LICENSE_FILE = {env:ANSYSLMD_LICENSE_FILE}
commands =
python -m pip install .[tests]
pytest {posargs} {env:PYTEST_EXTRA_ARGS:}
pytest {posargs} {env:PYTEST_EXTRA_ARGS:ANSYSEM_EDB_EXE_DIR:ANSYSLMD_LICENSE_FILE}

[testenv:coverage]
description = Checks for project unit tests and coverage
Expand Down
Loading