From a61f6cb4f2daf63554caba701cd86a5153a072fb Mon Sep 17 00:00:00 2001 From: viseshrp Date: Sun, 27 Oct 2024 09:43:54 -0400 Subject: [PATCH 1/3] bump setup-python --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f3d15c36e..b37516246 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -90,7 +90,7 @@ jobs: run: make pull-docker - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} From 11308c3d044556a13071946207bbcb7a681eb5e3 Mon Sep 17 00:00:00 2001 From: viseshrp Date: Sun, 27 Oct 2024 20:10:00 -0400 Subject: [PATCH 2/3] cleanup nightly actions --- .github/workflows/ci_cd.yml | 5 ---- .github/workflows/nightly.yml | 43 +++++++++-------------------------- 2 files changed, 11 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index b37516246..27ff58c34 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ca5cf11e9..16f0c53a9 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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: @@ -64,6 +37,11 @@ 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: @@ -71,6 +49,7 @@ jobs: nightly_and_upload: name: nightly_and_upload + needs: [ nightly_test ] runs-on: ubuntu-latest steps: - name: Build library source and wheel artifacts @@ -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 From d574630fffa52cba8d55682b46508abb0a5a9f11 Mon Sep 17 00:00:00 2001 From: viseshrp Date: Sun, 27 Oct 2024 20:16:07 -0400 Subject: [PATCH 3/3] fix nightly dependency --- .github/workflows/nightly.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 16f0c53a9..e256df095 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -15,7 +15,6 @@ jobs: nightly_test: name: Testing - needs: [ smoke-tests ] runs-on: ${{ matrix.os }} strategy: matrix: