diff --git a/.github/workflows/nightly-test-run.yml b/.github/workflows/nightly-test-run.yml index b954a959d3d8..42f9ff50299e 100644 --- a/.github/workflows/nightly-test-run.yml +++ b/.github/workflows/nightly-test-run.yml @@ -114,6 +114,7 @@ jobs: - name: 23.1 Unit Testing run: make unittest-all-231 + continue-on-error: true env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} PYFLUENT_START_INSTANCE: 0 @@ -121,12 +122,14 @@ jobs: - name: Upload 23.1 Coverage Artifacts uses: actions/upload-artifact@v3 + continue-on-error: true with: name: coverage_report path: ./htmlcov - name: 23.2 Unit Testing run: make unittest-all-232 + continue-on-error: true env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} PYFLUENT_START_INSTANCE: 0 diff --git a/.github/workflows/test-run-wo-codegen.yml b/.github/workflows/test-run-wo-codegen.yml new file mode 100644 index 000000000000..0a80561885ec --- /dev/null +++ b/.github/workflows/test-run-wo-codegen.yml @@ -0,0 +1,85 @@ +name: Nightly Test Run + +on: + schedule: # UTC at 0400 on Monday and Thursday + - cron: '0 4 * * MON,THU' + workflow_dispatch: + +jobs: + test: + name: Unit Testing + runs-on: [self-hosted, pyfluent] + + steps: + - uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_*.txt') }} + 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(__version__)")" >> $GITHUB_OUTPUT + echo "PYFLUENT version is: $(python -c "from ansys.fluent.core import __version__; print(__version__)")" + id: version + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ secrets.GH_USERNAME }} + password: ${{ secrets.REPO_DOWNLOAD_PAT }} + + - name: Pull 22.2 Fluent docker image + run: make docker-pull + env: + FLUENT_IMAGE_TAG: v22.2.0 + + - name: Pull 23.1 Fluent docker image + run: make docker-pull + env: + FLUENT_IMAGE_TAG: v23.1.0 + + - name: Pull 23.2 Fluent docker image + run: make docker-pull + env: + FLUENT_IMAGE_TAG: v23.2.0 + + - name: 22.2 Unit Testing + run: make unittest-all-222 + continue-on-error: true + env: + ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} + PYFLUENT_START_INSTANCE: 0 + FLUENT_IMAGE_TAG: v22.2.0 + + - name: 23.1 Unit Testing + run: make unittest-all-231 + continue-on-error: true + env: + ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} + PYFLUENT_START_INSTANCE: 0 + FLUENT_IMAGE_TAG: v23.1.0 + + - name: 23.2 Unit Testing + run: make unittest-all-232 + continue-on-error: true + env: + ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} + PYFLUENT_START_INSTANCE: 0 + FLUENT_IMAGE_TAG: v23.2.0