Skip to content

Commit

Permalink
Disabling database tests for v24.1 (#2392)
Browse files Browse the repository at this point in the history
* Disabling database tests for v24.1

* downgrade codespell

* Test if Vale is missing configuration

* delete .vale.ini file

* Using an older vale version

* testing value of home

* trying adding HOME env var

* trying adding HOME env var

Revert "trying adding HOME env var"

This reverts commit 89a3ec6.

Revert "testing value of home"

This reverts commit e83e4a5.

Revert "Using an older vale version"

This reverts commit d55bd20.

Revert "delete .vale.ini file"

This reverts commit 352f283.

Revert "Test if Vale is missing configuration"

This reverts commit a3bd10b.

* Update .pre-commit-config.yaml

* Skipping vale checks

* skipping for now
  • Loading branch information
germa89 authored and Gryfenfer97 committed Oct 9, 2023
1 parent dc64d46 commit 5a6c1ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
description: 'Run all extended MAPDL build tests'
required: true
type: boolean

push:
tags:
- "*"
- "*"
branches:
- main
schedule:
Expand Down Expand Up @@ -55,6 +55,8 @@ jobs:
doc-style:
name: "Documentation style check"
runs-on: ubuntu-latest
#Skipping until 2394 is fixed
if: github.ref == 'Skip for now'
steps:
- name: "Ansys documentation style checks"
uses: ansys/actions/doc-style@v4
Expand All @@ -72,7 +74,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
# Only perform wheelhouse builds for macOS when releasing
should-release:
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
exclude:
- should-release: false
Expand Down Expand Up @@ -109,7 +111,7 @@ jobs:

- name: "Install OS packages"
run: |
sudo apt update
sudo apt update
sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz texlive-xetex
- name: "Test virtual framebuffer"
Expand Down Expand Up @@ -663,7 +665,7 @@ jobs:
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}

notify:
name: Notify failed build
needs: [upload-dev-docs]
Expand All @@ -675,4 +677,4 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
title-template: "Failed scheduled build"
label-name: "Nightly build failed"
label-name: "Nightly build failed"
6 changes: 6 additions & 0 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ def db(mapdl):
f"This MAPDL version ({mapdl_version}) is not compatible with the Database module."
)

## Exceptions
# Exception for 22.2
if mapdl_version == "22.2" and ON_CI:
pytest.skip(
f"This MAPDL version ({mapdl_version}) docker image seems to not support DB, but local does."
)

if mapdl_version == "24.1":
pytest.skip(
f"This MAPDL version ({mapdl_version}) does not support PyMAPDL Database."
)

if mapdl._server_version < (0, 4, 1): # 2021R2
ver_ = ".".join([str(each) for each in mapdl._server_version])
pytest.skip(
Expand Down

0 comments on commit 5a6c1ee

Please sign in to comment.