Skip to content

Commit

Permalink
Update our CI to use v22.2 (#1280)
Browse files Browse the repository at this point in the history
* test for v22.2

* update docbuild as well

* skiping database tests unless we are in mapdl API 0.4.1.

Co-authored-by: German <[email protected]>
Co-authored-by: German <[email protected]>
  • Loading branch information
3 people authored Jul 22, 2022
1 parent f2e011b commit 8493c2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
PYMAPDL_START_INSTANCE: FALSE
PYANSYS_OFF_SCREEN: True
DOCKER_PACKAGE: ghcr.io/pyansys/pymapdl/mapdl
DOCKER_IMAGE_VERSION_DOCS_BUILD: v21.2.1
DOCKER_IMAGE_VERSION_DOCS_BUILD: v22.2.0
# Following env vars when changed will "reset" the mentioned cache,
# by changing the cache file name. It is rendered as ...-v%RESET_XXX%-...
# You should go up in number, if you go down (or repeat a previous value)
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
mapdl-version: ['v21.1.1', 'v21.2.1', 'v22.1.0']
mapdl-version: ['v21.1.1', 'v21.2.1', 'v22.1.0', 'v22.2.0']

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 4 additions & 2 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
from ansys.mapdl.core.database import DBDef, MapdlDb
from ansys.mapdl.core.misc import random_string

# We are skipping all these test until 0.5.X gets fixed.


@pytest.fixture(scope="session")
def db(mapdl):
if mapdl._server_version < (0, 4, 1): # 2021R2
if mapdl._server_version != (0, 4, 1): # 2021R2
pytest.skip("requires 2021R2 or newer")
return mapdl.db

Expand All @@ -36,7 +38,7 @@ def elems(gen_block, db):


def test_database_start_stop(mapdl):
if mapdl._server_version < (0, 4, 1): # 2021R2
if mapdl._server_version != (0, 4, 1): # 2021R2
pytest.skip("requires 2021R2 or newer")

# verify it can be created twice
Expand Down

0 comments on commit 8493c2f

Please sign in to comment.