Skip to content

Commit

Permalink
Revert "Using pytest-xvfb extension"
Browse files Browse the repository at this point in the history
This reverts commit 4e2ebab.
  • Loading branch information
germa89 committed Jul 26, 2023
1 parent afdfff2 commit bb63332
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ jobs:
- name: "Test virtual framebuffer"
run: |
pip install -r .ci/requirements_test_xvfb.txt
python .ci/display_test.py
xvfb-run python .ci/display_test.py
- name: "Install ansys-mapdl-core"
run: |
pip install .
python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
- name: "Login in Github container registry"
uses: docker/[email protected]
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- name: "Build documentation"
run: |
make -C doc html SPHINXOPTS="-j auto -W --keep-going"
xvfb-run make -C doc html SPHINXOPTS="-j auto -W --keep-going"
- name: "Substitute defective GIF"
run: |
Expand Down Expand Up @@ -299,14 +299,14 @@ jobs:
- name: "Test virtual framebuffer"
run: |
pip install -r .ci/requirements_test_xvfb.txt
python .ci/display_test.py
xvfb-run python .ci/display_test.py
- name: Install ansys-mapdl-core
run: |
python -m pip install build
python -m build
python -m pip install dist/*.whl
python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
- name: "Login in Github container registry"
uses: docker/[email protected]
Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
- name: "Unit testing"
run: |
if [[ "${{ matrix.mapdl-version }}" == *"ubuntu"* ]]; then export ON_UBUNTU=true;fi
pytest \
xvfb-run pytest \
${{ env.PYTEST_ARGUMENTS }} \
--cov-report=xml:centos-${{ matrix.mapdl-version }}-remote.xml
Expand Down Expand Up @@ -465,14 +465,14 @@ jobs:
- name: "Test virtual framebuffer"
run: |
python -m pip install -r .ci/requirements_test_xvfb.txt
python .ci/display_test.py
xvfb-run python .ci/display_test.py
- name: "Install ansys-mapdl-core"
run: |
python -m pip install build
python -m build
python -m pip install dist/*.whl
python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
- name: "Unit testing requirements installation"
run: |
Expand All @@ -489,7 +489,7 @@ jobs:
unset PYMAPDL_START_INSTANCE
export ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}
export AWP_ROOT222=/ansys_inc
pytest -k "not test_database and not test_dpf" \
xvfb-run pytest -k "not test_database and not test_dpf" \
${{ env.PYTEST_ARGUMENTS }} \
--cov-report=xml:ubuntu-v22.2.0-local.xml
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ tests = [
"pyansys-tools-report==0.6.0",
"vtk==9.2.6",
"pytest-rerunfailures==12.0",
"pytest-xvfb==3.0.0",
]
doc = [
"sphinx==6.2.1",
Expand Down

0 comments on commit bb63332

Please sign in to comment.