Skip to content

Commit 3259b4e

Browse files
FEATURE: Enable end to end testing
1 parent e5b1354 commit 3259b4e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
PACKAGE_NAME: 'ansys-edb-core'
1414
DOCUMENTATION_CNAME: 'edb.core.docs.pyansys.com'
1515
MAIN_PYTHON_VERSION: '3.10'
16+
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
1617

1718
concurrency:
1819
group: ${{ github.workflow }}-${{ github.ref }}
@@ -80,6 +81,28 @@ jobs:
8081
# Only the tox environment specified in the tox.ini gh-actions is run
8182
run: tox -e test -- --ignore=tests/e2e
8283

84+
tests-e2e:
85+
name: End to end tests and coverage
86+
runs-on: [ self-hosted, Windows, pyedb-core ]
87+
steps:
88+
- uses: actions/checkout@v4
89+
- name: Set up Python ${{ matrix.python-version }}
90+
uses: actions/setup-python@v4
91+
with:
92+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
93+
94+
- name: Install dependencies
95+
run: |
96+
python -m pip install --upgrade .[tests]
97+
python -m pip install --upgrade tox-gh-actions
98+
99+
- name: Test with tox
100+
# Only the tox environment specified in the tox.ini gh-actions is run
101+
run: |
102+
~/start.bat
103+
tox -e test -- tests/e2e
104+
~/stop.bat
105+
83106
doc-build:
84107
name: "Doc build"
85108
runs-on: ubuntu-latest

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ install_command =
3030
description = Checks for project unit tests
3131
setenv =
3232
PYTEST_EXTRA_ARGS = --junitxml=junit/test-results.xml
33+
ANSYSEM_EDB_EXE_DIR = {env:ANSYSEM_ROOT251}
3334
commands =
3435
python -m pip install .[tests]
35-
pytest {posargs} {env:PYTEST_EXTRA_ARGS:}
36+
pytest {posargs} {env:PYTEST_EXTRA_ARGS:ANSYSEM_EDB_EXE_DIR}
3637

3738
[testenv:coverage]
3839
description = Checks for project unit tests and coverage

0 commit comments

Comments
 (0)