Skip to content

Nightly Test Run

Nightly Test Run #1044

name: Nightly Test Run
on:
schedule: # UTC at 0400
- cron: '0 4 * * *'
workflow_dispatch:
permissions:
contents: read
packages: read
env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_LAUNCH_CONTAINER: 1
jobs:
test:
name: Unit Testing
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, public-ubuntu-latest-8-cores]
python-version: ['3.10', '3.11', '3.12', '3.13']
fail-fast: false
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install OS packages
if: matrix.os == 'public-ubuntu-latest-8-cores'
run: |
sudo apt update
sudo apt install libegl1
- name: Install pyfluent-visualization
run: make install
- name: Login to GitHub Container Registry
if: matrix.os == 'public-ubuntu-latest-8-cores'
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ secrets.BOT_APPLICATION_ID }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Fluent docker image
if: matrix.os == 'public-ubuntu-latest-8-cores'
run: make docker-pull
env:
FLUENT_IMAGE_TAG: v25.2.3
- name: Test with pytest
run: make unittest-windows
if: matrix.os == 'windows-latest'
env:
FLUENT_IMAGE_TAG: v25.2.3
- name: Test with pytest
run: make unittest-linux
if: matrix.os == 'public-ubuntu-latest-8-cores'
env:
FLUENT_IMAGE_TAG: v25.2.3
- name: Remove all docker images
if: always()
run: make docker-clean-images