Skip to content

Commit

Permalink
cleanup nightly actions (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
viseshrp authored Oct 28, 2024
1 parent 110fa43 commit c946266
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
exclude:
- should-release: false
os: macos-latest
steps:
- name: Build wheelhouse and perform smoke test
uses: ansys/actions/build-wheelhouse@v8
Expand Down
43 changes: 11 additions & 32 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,21 @@
name: Nightly Build and Test

on:
schedule: # UTC at 0300 - 11pm EDT
- cron: '0 3 * * *'
schedule: # UTC at 0300 = 11pm EDT
- cron: '0 3 * * *'
workflow_dispatch:

env:
MAIN_PYTHON_VERSION: '3.10'
MAIN_PYTHON_VERSION: '3.12'
PACKAGE_NAME: 'ansys-dynamicreporting-core'
PACKAGE_NAMESPACE: 'ansys.dynamicreporting.core'


jobs:

style:
name: Code style
runs-on: ubuntu-latest
steps:
- name: PyAnsys code style checks
uses: ansys/actions/code-style@v8
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

smoke-tests:
name: Build and smoke tests
runs-on: ${{ matrix.os }}
needs: [style]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [ '3.9', '3.10', '3.11', '3.12']
steps:
- name: Build wheelhouse and perform smoke test
uses: ansys/actions/build-wheelhouse@v8
with:
library-name: ${{ env.PACKAGE_NAME }}
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
operating-system: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}

nightly_test:
name: Testing
needs: [smoke-tests]
needs: [ smoke-tests ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -64,13 +37,19 @@ jobs:
- name: Pull Docker container
run: make pull-docker

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run pytest
run: make test
env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}

nightly_and_upload:
name: nightly_and_upload
needs: [ nightly_test ]
runs-on: ubuntu-latest
steps:
- name: Build library source and wheel artifacts
Expand All @@ -95,7 +74,7 @@ jobs:
build-failure:
name: Teams notify on failure
if: failure()
needs: [ nightly_test, nightly_and_upload]
needs: [ nightly_test, nightly_and_upload ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit c946266

Please sign in to comment.