Skip to content

Commit 032e8b7

Browse files
committed
Merge branch 'main' into release/0.2
2 parents bfb3f3c + 5674a71 commit 032e8b7

File tree

16 files changed

+186
-82
lines changed

16 files changed

+186
-82
lines changed

.github/workflows/ci_cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
testing-windows:
7676
name: Testing and coverage (Windows)
7777
needs: [smoke-tests]
78-
runs-on: [self-hosted, pygeometry]
78+
runs-on: [self-hosted, Windows, pygeometry]
7979
continue-on-error: ${{ matrix.experimental }}
8080
strategy:
8181
fail-fast: false
@@ -179,7 +179,7 @@ jobs:
179179
docs:
180180
name: Documentation
181181
needs: [docs-style]
182-
runs-on: [self-hosted, pygeometry]
182+
runs-on: [self-hosted, Windows, pygeometry]
183183
steps:
184184
- uses: actions/checkout@v3
185185

@@ -347,7 +347,7 @@ jobs:
347347
needs: [testing-windows, testing-linux, docs]
348348
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
349349
runs-on:
350-
group: ansys-internal
350+
group: ansys-network
351351
labels: [self-hosted, Windows, signtool]
352352

353353
steps:

.github/workflows/docker_push_stable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
if: inputs.ansyslab
5959
needs: [windows]
6060
runs-on:
61-
group: ansys-internal
62-
labels: Windows
61+
group: ansys-network
62+
labels: [Windows, pygeometry]
6363
steps:
6464
- name: Login in Github Container registry
6565
uses: docker/login-action@v2
@@ -110,8 +110,8 @@ jobs:
110110
if: inputs.ansyslab
111111
needs: [linux]
112112
runs-on:
113-
group: ansys-internal
114-
labels: Linux
113+
group: ansys-network
114+
labels: [Linux, pygeometry]
115115
steps:
116116
- name: Login in Github Container registry
117117
uses: docker/login-action@v2

.github/workflows/docker_test_build.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ env:
2121
ANSRV_GEO_PORT: 700
2222
ANSRV_GEO_LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
2323
GEO_CONT_NAME: ans_geo
24+
RESET_IMAGE_CACHE: 0
2425

2526
concurrency:
2627
group: ${{ github.workflow }}-${{ github.ref }}
@@ -33,7 +34,7 @@ jobs:
3334

3435
build-windows:
3536
name: Building Geometry Service - Windows
36-
runs-on: [self-hosted, pygeometry]
37+
runs-on: [self-hosted, Windows, pygeometry]
3738
steps:
3839
- name: Checkout repository
3940
uses: actions/checkout@v3
@@ -70,9 +71,21 @@ jobs:
7071
python -m venv .venv
7172
.\.venv\Scripts\Activate.ps1
7273
python -m pip install --upgrade pip
73-
pip install .
74+
pip install -e .[tests]
7475
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
7576
77+
- name: Restore images cache
78+
uses: actions/cache@v3
79+
with:
80+
path: .\tests\integration\image_cache
81+
key: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
82+
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
83+
84+
- name: Testing
85+
run: |
86+
.\.venv\Scripts\Activate.ps1
87+
pytest -v --use-existing-service=yes
88+
7689
- name: Stop the Geometry service
7790
if: always()
7891
run: |
@@ -122,9 +135,26 @@ jobs:
122135
- name: Validate connection using PyGeometry
123136
run: |
124137
python -m pip install --upgrade pip
125-
pip install .
138+
pip install -e .[tests]
126139
python -c "from ansys.geometry.core.connection.validate import validate; validate()"
127140
141+
- name: Restore images cache
142+
uses: actions/cache@v3
143+
with:
144+
path: .\tests\integration\image_cache
145+
key: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}-${{ hashFiles('pyproject.toml') }}
146+
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
147+
148+
- name: Run pytest
149+
uses: ansys/actions/tests-pytest@v4
150+
env:
151+
ALLOW_PLOTTING: true
152+
with:
153+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
154+
pytest-extra-args: "--service-os=linux --use-existing-service=yes"
155+
checkout: false
156+
requires-xvfb: true
157+
128158
- name: Stop the Geometry service
129159
if: always()
130160
run: |

.github/workflows/nightly_docker_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
windows-tests:
2222
name: Nightly unstable testing - Windows
23-
runs-on: [self-hosted, pygeometry]
23+
runs-on: [self-hosted, Windows, pygeometry]
2424

2525
steps:
2626
- uses: actions/checkout@v3

doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pdf:
3232

3333
# Build HTML files and generate examples as .py files
3434
html:
35+
@$(SPHINXBUILD) -M linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3536
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3637
cd $(BUILDDIR)/html/examples
3738
for d in */ ; do

doc/make.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if errorlevel 9009 (
3232
goto end
3333

3434
:html
35+
%SPHINXBUILD% -M linkcheck %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3536
%SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3637
goto build-examples-py
3738

doc/source/examples/01_getting_started/02_units.mystnb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Now, with this ``UnitRegistry`` object called ``UNITS``, we will create
3737
``Quantity`` objects also have convenience methods for: transforming to different units, comparing
3838
magnitudes/values, units, etc. For more information on their functioning please refer to the
3939
[pint.Quantity](https://pint.readthedocs.io/en/stable/api/base.html#most-important-classes)
40-
docs or the [Pint tutorial](https://pint.readthedocs.io/en/stable/getting/tutorial.html?#tutorial).
40+
docs or the [Pint tutorial](https://pint.readthedocs.io/en/stable/getting/tutorial.html).
4141

4242
```{code-cell} ipython3
4343
from pint import Quantity

doc/source/getting_started/docker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Docker container.
4949

5050
#. If you have Docker installed, use a GitHub personal access token (PAT) with packages read permission to authorize Docker
5151
to access this repository. For more information,
52-
see `creating a personal access token <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token>`_.
52+
see `creating a personal access token <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens>`_.
5353

5454
#. Save the token to a file:
5555

docker/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ In order to build your images, follow the next instructions:
6464
docker images
6565
6666
>>> REPOSITORY TAG IMAGE ID CREATED SIZE
67-
>>> ghcr.io/ansys/geometry *******-latest ............ X seconds ago 6.43GB
67+
>>> ghcr.io/ansys/geometry *******-latest ............ X seconds ago 6.43GB
6868
>>> ...... ...... ............ .............. ......

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ all = [
4949

5050
tests = [
5151
"ansys-platform-instancemanagement==1.1.1",
52-
"beartype==0.14.0",
53-
"docker==6.1.2",
54-
"google-api-python-client==2.86.0",
55-
"googleapis-common-protos==1.59.0",
52+
"beartype==0.14.1",
53+
"docker==6.1.3",
54+
"google-api-python-client==2.90.0",
55+
"googleapis-common-protos==1.59.1",
5656
"grpcio==1.50.0",
5757
"grpcio-health-checking==1.48.2",
58-
"numpy==1.24.3",
59-
"Pint==0.21",
58+
"numpy==1.25.0",
59+
"Pint==0.22",
6060
"protobuf==3.20.3",
61-
"pytest==7.3.1",
62-
"pytest-cov==4.0.0",
61+
"pytest==7.3.2",
62+
"pytest-cov==4.1.0",
6363
"pytest-pyvista==0.1.8",
6464
"pyvista[trame]==0.39.1",
6565
"requests==2.31.0",
@@ -69,20 +69,20 @@ tests = [
6969
]
7070
doc = [
7171
"ansys-sphinx-theme==0.9.9",
72-
"docker==6.1.2",
72+
"docker==6.1.3",
7373
"ipyvtklink==0.2.3",
7474
"jupyter_sphinx==0.4.0",
75-
"jupytext==1.14.5",
75+
"jupytext==1.14.6",
7676
"myst-parser==1.0.0",
77-
"nbconvert==7.4.0",
78-
"nbsphinx==0.9.1",
77+
"nbconvert==7.6.0",
78+
"nbsphinx==0.9.2",
7979
"notebook==6.5.4",
8080
"numpydoc==1.5.0",
81-
"panel==1.0.2",
81+
"panel==1.1.1",
8282
"pyvista[trame]==0.39.1",
8383
"requests==2.31.0",
8484
"Sphinx==6.1.3",
85-
"sphinx-autoapi==2.1.0",
85+
"sphinx-autoapi==2.1.1",
8686
"sphinx-autodoc-typehints==1.22.0",
8787
"sphinx-copybutton==0.5.2",
8888
"sphinx_design==0.4.1",

0 commit comments

Comments
 (0)