Skip to content

Commit c946266

Browse files
authored
cleanup nightly actions (#167)
1 parent 110fa43 commit c946266

File tree

2 files changed

+11
-37
lines changed

2 files changed

+11
-37
lines changed

.github/workflows/ci_cd.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ jobs:
5353
matrix:
5454
os: [ubuntu-latest, windows-latest, macos-latest]
5555
python-version: ['3.9', '3.10', '3.11', '3.12']
56-
should-release:
57-
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
58-
exclude:
59-
- should-release: false
60-
os: macos-latest
6156
steps:
6257
- name: Build wheelhouse and perform smoke test
6358
uses: ansys/actions/build-wheelhouse@v8

.github/workflows/nightly.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,21 @@
11
name: Nightly Build and Test
22

33
on:
4-
schedule: # UTC at 0300 - 11pm EDT
5-
- cron: '0 3 * * *'
4+
schedule: # UTC at 0300 = 11pm EDT
5+
- cron: '0 3 * * *'
66
workflow_dispatch:
77

88
env:
9-
MAIN_PYTHON_VERSION: '3.10'
9+
MAIN_PYTHON_VERSION: '3.12'
1010
PACKAGE_NAME: 'ansys-dynamicreporting-core'
1111
PACKAGE_NAMESPACE: 'ansys.dynamicreporting.core'
1212

1313

1414
jobs:
1515

16-
style:
17-
name: Code style
18-
runs-on: ubuntu-latest
19-
steps:
20-
- name: PyAnsys code style checks
21-
uses: ansys/actions/code-style@v8
22-
with:
23-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
24-
25-
smoke-tests:
26-
name: Build and smoke tests
27-
runs-on: ${{ matrix.os }}
28-
needs: [style]
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
os: [ubuntu-latest, windows-latest]
33-
python-version: [ '3.9', '3.10', '3.11', '3.12']
34-
steps:
35-
- name: Build wheelhouse and perform smoke test
36-
uses: ansys/actions/build-wheelhouse@v8
37-
with:
38-
library-name: ${{ env.PACKAGE_NAME }}
39-
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
40-
operating-system: ${{ matrix.os }}
41-
python-version: ${{ matrix.python-version }}
42-
4316
nightly_test:
4417
name: Testing
45-
needs: [smoke-tests]
18+
needs: [ smoke-tests ]
4619
runs-on: ${{ matrix.os }}
4720
strategy:
4821
matrix:
@@ -64,13 +37,19 @@ jobs:
6437
- name: Pull Docker container
6538
run: make pull-docker
6639

40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
6745
- name: Run pytest
6846
run: make test
6947
env:
7048
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
7149

7250
nightly_and_upload:
7351
name: nightly_and_upload
52+
needs: [ nightly_test ]
7453
runs-on: ubuntu-latest
7554
steps:
7655
- name: Build library source and wheel artifacts
@@ -95,7 +74,7 @@ jobs:
9574
build-failure:
9675
name: Teams notify on failure
9776
if: failure()
98-
needs: [ nightly_test, nightly_and_upload]
77+
needs: [ nightly_test, nightly_and_upload ]
9978
runs-on: ubuntu-latest
10079
steps:
10180
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)