Skip to content

Commit

Permalink
Merge branch 'main' into fix/generate_rst_separately
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar authored Apr 21, 2024
2 parents 2936122 + 62a4ab9 commit d0ddcb7
Show file tree
Hide file tree
Showing 13 changed files with 325 additions and 218 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/compare-flobject.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Nightly Development Documentation Build
name: Doc Build Dev Nightly

on:
schedule: # UTC at 0400
- cron: '0 4 * * *'
schedule: # UTC at 0500
- cron: '0 5 * * *'
workflow_dispatch:

env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Documentation Build
name: Doc Build Release

on:
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Run Custom Tests
name: Test Run Custom

on:
#pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly Test Run (Develop)
name: Test Run Dev Version Nightly

on:
schedule: # UTC at 0300
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/test-run-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Test Run Nightly

on:
schedule: # UTC at 0400
- cron: '0 4 * * *'
workflow_dispatch:

env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_TIMEOUT_FORCE_EXIT: 30
PYFLUENT_LAUNCH_CONTAINER: 1
PYFLUENT_LOGGING: 'DEBUG'
PYFLUENT_WATCHDOG_DEBUG: 'OFF'
PYFLUENT_HIDE_LOG_SECRETS: 1

jobs:
test:
name: Unit Testing
runs-on: [self-hosted, pyfluent]

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
Python-${{ runner.os }}-${{ matrix.python-version }}
- name: Add version information
run: make version-info

- name: Install pyfluent
run: make install

- name: Retrieve PyFluent version
run: |
echo "PYFLUENT_VERSION=$(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)" >> $GITHUB_OUTPUT
echo "PYFLUENT version is: $(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)"
id: version

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ansys-bot
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull 24.1 Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Run 24.1 API codegen
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Print 24.1 Fluent version info
run: |
cat src/ansys/fluent/core/fluent_version_241.py
python -c "from ansys.fluent.core.solver.settings_241 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"
- name: Install again after codegen
run: |
rm -rf dist
make install > /dev/null
- name: 24.1 Unit Testing
run: |
make install-test
make unittest-all-241
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Upload 24.1 Coverage Results to Codecov
uses: codecov/codecov-action@v4
with:
root_dir: ${{ github.workspace }}
name: cov_xml.xml

- name: Upload 24.1 Coverage Artifacts
uses: actions/upload-artifact@v4
with:
name: coverage_report
path: ./htmlcov
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Nightly Test Run
name: Test Run Old Versions Weekly

on:
schedule: # UTC at 0400
- cron: '0 4 * * *'
schedule: # UTC at 0900 on Saturday
- cron: '0 9 * * SAT'
workflow_dispatch:

env:
Expand All @@ -14,8 +14,8 @@ env:
PYFLUENT_HIDE_LOG_SECRETS: 1

jobs:
test:
name: Unit Testing
build:
name: Build package
runs-on: [self-hosted, pyfluent]

steps:
Expand Down Expand Up @@ -98,62 +98,80 @@ jobs:
cat src/ansys/fluent/core/fluent_version_232.py
python -c "from ansys.fluent.core.solver.settings_231 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"
- name: Pull 24.1 Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Run 24.1 API codegen
run: make api-codegen
env:
FLUENT_IMAGE_TAG: v24.1.0

- name: Print 24.1 Fluent version info
run: |
cat src/ansys/fluent/core/fluent_version_241.py
python -c "from ansys.fluent.core.solver.settings_241 import SHASH; print(f'SETTINGS_HASH = {SHASH}')"
- name: Install again after codegen
run: |
rm -rf dist
make install > /dev/null
- name: 24.1 Unit Testing
- name: Check package
run: |
make install-test
make unittest-all-241
env:
FLUENT_IMAGE_TAG: v24.1.0
pip install twine
twine check dist/*
- name: Upload 24.1 Coverage Results to Codecov
uses: codecov/codecov-action@v4
- name: Upload package
uses: actions/upload-artifact@v4
with:
root_dir: ${{ github.workspace }}
name: cov_xml.xml
name: PyFluent-packages
path: |
dist/*.whl
dist/*.tar.gz
retention-days: 7

- name: Upload 24.1 Coverage Artifacts
uses: actions/upload-artifact@v4
test:
name: Unit Testing
needs: build
runs-on: [self-hosted, pyfluent]
strategy:
fail-fast: false
matrix:
include:
- image-tag: v22.2.0
version: 222
- image-tag: v23.1.0
version: 231
- image-tag: v23.2.0
version: 232

steps:

- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
name: coverage_report
path: ./htmlcov
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: 23.2 Unit Testing
run: |
make install-test
make unittest-all-232
env:
FLUENT_IMAGE_TAG: v23.2.0
- name: Download package
uses: actions/download-artifact@v4
with:
name: PyFluent-packages
path: dist

- name: Install pyfluent
run: pip install -q --force-reinstall dist/*.whl > /dev/null

- name: 23.1 Unit Testing
- name: Retrieve PyFluent version
run: |
make install-test
make unittest-all-231
echo "PYFLUENT_VERSION=$(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)" >> $GITHUB_OUTPUT
echo "PYFLUENT version is: $(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)"
id: version

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ansys-bot
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull Fluent docker image
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v23.1.0
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

- name: 22.2 Unit Testing
- name: Unit Testing
run: |
make install-test
make unittest-all-222
make unittest-all-${{ matrix.version }}
env:
FLUENT_IMAGE_TAG: v22.2.0
FLUENT_IMAGE_TAG: ${{ matrix.image-tag }}

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Weekly solvermode test run
name: Test Run Solvermode Weekly

on:
schedule: # UTC at 0400 on Monday
- cron: '0 4 * * MON'
schedule: # UTC at 0800 on Sunday
- cron: '0 8 * * SUN'
workflow_dispatch:

env:
Expand Down
Loading

0 comments on commit d0ddcb7

Please sign in to comment.