Nightly Build #179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Build | |
on: | |
schedule: # UTC at 0300 - 11pm EDT | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
env: | |
MAIN_PYTHON_VERSION: '3.10' | |
PACKAGE_NAME: 'ansys-tools-omniverse' | |
ENSIGHT_IMAGE: 'ghcr.io/ansys-internal/ensight_dev' | |
jobs: | |
nightly_test: | |
name: Nightly tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Pull Docker image | |
run: docker pull ${{ env.ENSIGHT_IMAGE }} | |
- name: Run pytest | |
uses: ansys/actions/tests-pytest@v8 | |
env: | |
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} | |
with: | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
requires-xvfb: true | |
- uses: codecov/codecov-action@v3 | |
name: 'Upload coverage to CodeCov' | |
nightly_build: | |
name: Nightly build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build library source and wheel artifacts | |
uses: ansys/actions/build-library@v8 | |
with: | |
library-name: ${{ env.PACKAGE_NAME }} | |
python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
- name: Upload wheel | |
if: ${{ !env.ACT }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ansys-pyensight-wheel | |
path: dist/ | |
retention-days: 7 | |
if-no-files-found: error | |