Skip to content

Commit

Permalink
ci: Fix the python version issue (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 authored Apr 22, 2024
1 parent b9be47b commit 8ac0d8a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-run-dev-version-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
PYFLUENT_LOGGING: 'DEBUG'
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1
MAIN_PYTHON_VERSION: '3.9'

jobs:
test:
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Cache pip
uses: actions/cache@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-run-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
PYFLUENT_LOGGING: 'DEBUG'
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1
MAIN_PYTHON_VERSION: '3.9'

jobs:
test:
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Cache pip
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-run-old-versions-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
PYFLUENT_LOGGING: 'DEBUG'
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1
MAIN_PYTHON_VERSION: '3.9'

jobs:
build:
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Cache pip
uses: actions/cache@v4
Expand Down Expand Up @@ -174,4 +175,3 @@ jobs:
make unittest-all-${{ matrix.version }}
env:
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

3 changes: 2 additions & 1 deletion .github/workflows/test-run-solvermode-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1
FLUENT_IMAGE_TAG: v24.2.0
MAIN_PYTHON_VERSION: '3.9'

jobs:
test:
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Cache pip
uses: actions/cache@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Run WO Codegen
name: Test Run WO Codegen Weekly

on:
schedule: # UTC at 0900 on Sunday
Expand All @@ -12,6 +12,7 @@ env:
PYFLUENT_LOGGING: 'DEBUG'
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1
MAIN_PYTHON_VERSION: '3.9'

jobs:
build:
Expand All @@ -24,7 +25,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Cache pip
uses: actions/cache@v4
Expand Down
3 changes: 1 addition & 2 deletions tests/test_type_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
from ansys.fluent.core._version import fluent_release_version
from ansys.fluent.core.utils.fluent_version import FluentVersion

pytest.mark.codegen_required


@pytest.mark.codegen_required
def test_settings_stub():
# The type-stub files, which are generated for settings API, are parsed by the
# intellisense engine while typing in editors like vscode. This test validates the
Expand Down

0 comments on commit 8ac0d8a

Please sign in to comment.