11name : Nightly Build and Test
22
33on :
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
88env :
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
1414jobs :
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
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