1414 PYMAPDL_DB_PORT : 21001 # default won't work on GitHub runners
1515 PYMAPDL_START_INSTANCE : FALSE
1616 PYANSYS_OFF_SCREEN : True
17- DOCKER_PACKAGE : docker.pkg.github.com /pyansys/pymapdl/mapdl
17+ DOCKER_PACKAGE : ghcr.io /pyansys/pymapdl/mapdl
1818 DOCKER_IMAGE_VERSION_DOCS_BUILD : v21.2.1
1919 # Following env vars when changed will "reset" the mentioned cache,
2020 # by changing the cache file name. It is rendered as ...-v%RESET_XXX%-...
@@ -64,18 +64,18 @@ jobs:
6464 if : ${{ runner.os == 'Linux' }}
6565 with :
6666 path : ~/.cache/pip
67- key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests.txt') }}
67+ key : Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests.txt') }}
6868 restore-keys : |
69- Python-${{ runner.os }}-${{ matrix.python-version }}
69+ Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}
7070
7171 - name : Window pip cache
7272 uses : actions/cache@v2
7373 if : ${{ runner.os == 'Windows' }}
7474 with :
7575 path : ~\AppData\Local\pip\Cache
76- key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests*.txt') }}
76+ key : Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests*.txt') }}
7777 restore-keys : |
78- Python-${{ runner.os }}-${{ matrix.python-version }}
78+ Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}
7979
8080 - name : Install PyMAPDL
8181 run : pip install .
@@ -136,9 +136,9 @@ jobs:
136136 uses : actions/cache@v2
137137 with :
138138 path : ~/.cache/pip
139- key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_docs*.txt') }}
139+ key : Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_docs*.txt') }}
140140 restore-keys : |
141- Python-${{ runner.os }}-${{ matrix.python-version }}
141+ Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}
142142
143143 - name : Test virtual framebuffer
144144 run : |
@@ -152,12 +152,17 @@ jobs:
152152 pip install dist/ansys*.whl
153153 xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
154154
155+ - name : Login in Github Container registry
156+ uses : docker/login-action@v1
157+ with :
158+ registry : ghcr.io
159+ username : ${{ secrets.GH_USERNAME }}
160+ password : ${{ secrets.GITHUB_TOKEN }}
161+
155162 - name : Pull, launch, and validate MAPDL service
156163 run : .ci/start_mapdl.sh
157164 env :
158165 LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
159- GH_USERNAME : ${{ secrets.GH_USERNAME }}
160- GH_PAT : ${{ secrets.REPO_DOWNLOAD_PAT }}
161166 MAPDL_IMAGE : ' ${{ env.DOCKER_PACKAGE }}:${{ env.DOCKER_IMAGE_VERSION_DOCS_BUILD }}'
162167
163168 - name : Retrieve PyMAPDL version
@@ -170,25 +175,25 @@ jobs:
170175 uses : actions/cache@v2
171176 with :
172177 path : doc/source/examples
173- key : Examples-${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
178+ key : Examples-v${{ env.RESET_EXAMPLES_CACHE }}- ${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
174179 restore-keys : |
175- Examples-${{ steps.version.outputs.PYMAPDL_VERSION }}
180+ Examples-v${{ env.RESET_EXAMPLES_CACHE }}- ${{ steps.version.outputs.PYMAPDL_VERSION }}
176181
177182 - name : Cache docs build directory
178183 uses : actions/cache@v2
179184 with :
180185 path : doc/build
181- key : doc-build-${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
186+ key : doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}- ${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
182187 restore-keys : |
183- doc-build-${{ steps.version.outputs.PYMAPDL_VERSION }}
188+ doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}- ${{ steps.version.outputs.PYMAPDL_VERSION }}
184189
185190 - name : Cache autosummary
186191 uses : actions/cache@v2
187192 with :
188193 path : doc/source/**/_autosummary/*.rst
189- key : autosummary-rst -${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
194+ key : autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }} -${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
190195 restore-keys : |
191- autosummary-rst -${{ steps.version.outputs.PYMAPDL_VERSION }}
196+ autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }} -${{ steps.version.outputs.PYMAPDL_VERSION }}
192197
193198 - name : Install Docs Build Requirements
194199 run : |
@@ -237,7 +242,7 @@ jobs:
237242 runs-on : ubuntu-latest
238243 strategy :
239244 matrix :
240- mapdl-version : ['v21.1.1', 'v21.2.1']
245+ mapdl-version : ['v21.1.1', 'v21.2.1', 'v22.1.0' ]
241246
242247 steps :
243248 - uses : actions/checkout@v2
@@ -256,9 +261,9 @@ jobs:
256261 uses : actions/cache@v2
257262 with :
258263 path : ~/.cache/pip
259- key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests.txt') }}
264+ key : Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_tests.txt') }}
260265 restore-keys : |
261- Python-${{ runner.os }}-${{ matrix.python-version }}
266+ Python-v${{ env.RESET_PIP_CACHE }}- ${{ runner.os }}-${{ matrix.python-version }}
262267
263268 - name : Test virtual framebuffer
264269 run : |
@@ -272,12 +277,17 @@ jobs:
272277 pip install dist/*.whl
273278 xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
274279
280+ - name : Login in Github Container registry
281+ uses : docker/login-action@v1
282+ with :
283+ registry : ghcr.io
284+ username : ${{ secrets.GH_USERNAME }}
285+ password : ${{ secrets.GITHUB_TOKEN }}
286+
275287 - name : Pull, launch, and validate MAPDL service
276288 run : .ci/start_mapdl.sh
277289 env :
278290 LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
279- GH_USERNAME : ${{ secrets.GH_USERNAME }}
280- GH_PAT : ${{ secrets.REPO_DOWNLOAD_PAT }}
281291 MAPDL_IMAGE : ${{ env.DOCKER_PACKAGE }}:${{ matrix.mapdl-version }}
282292
283293 - name : Unit Testing
0 commit comments