@@ -2,7 +2,6 @@ name: CI-CD
22
33# run only on main branch. This avoids duplicated actions on PRs
44on :
5- workflow_dispatch :
65 pull_request :
76 branches :
87 - main
@@ -18,9 +17,11 @@ concurrency:
1817
1918env :
2019 DOCUMENTATION_CNAME : ' dynamicreporting.docs.pyansys.com'
21- MAIN_PYTHON_VERSION : ' 3.13 '
20+ MAIN_PYTHON_VERSION : ' 3.12 '
2221 PACKAGE_NAME : ' ansys-dynamicreporting-core'
2322 PACKAGE_NAMESPACE : ' ansys.dynamicreporting.core'
23+ ANSYS_VERSION : ' 261'
24+ DPF_STANDALONE_SUFFIX : ' '
2425
2526jobs :
2627 style :
@@ -49,11 +50,11 @@ jobs:
4950 fail-fast : false
5051 matrix :
5152 os : [ ubuntu-latest, windows-latest ]
52- python-version : [ '3.10', '3.11', '3.12', '3.13' ]
53+ python-version : [ '3.10', '3.11', '3.12' ]
5354
5455 steps :
5556 - name : Checkout code
56- uses : actions/checkout@v4
57+ uses : actions/checkout@v5
5758
5859 - name : Set up Python
5960 uses : actions/setup-python@v5
7980 strategy :
8081 matrix :
8182 os : [ ubuntu-latest ]
82- python-version : [ '3.10', '3.11', '3.12', '3.13' ]
83+ python-version : [ '3.10', '3.11', '3.12' ]
8384 steps :
84- - uses : actions/checkout@v4
85+ - uses : actions/checkout@v5
8586
8687 - name : Login to GitHub Container Registry
8788 uses : docker/login-action@v3
9899 with :
99100 python-version : ${{ matrix.python-version }}
100101
102+ - name : Set licensing if necessary
103+ if : ${{ env.ANSYS_VERSION > '231' }}
104+ shell : bash
105+ run : |
106+ echo "ANSYS_DPF_ACCEPT_LA=Y" >> $GITHUB_ENV
107+ echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV
108+
109+ - name : Update packages
110+ shell : bash
111+ run : |
112+ sudo apt update && sudo apt install -y \
113+ libx11-dev \
114+ libgl1-mesa-dev \
115+ libxrender1
116+
117+ - name : Install DPF
118+ id : set-server-path
119+ uses :
ansys/pydpf-actions/[email protected] 120+ with :
121+ dpf-standalone-TOKEN : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
122+ standalone_suffix : ${{ env.DPF_STANDALONE_SUFFIX }}
123+ ANSYS_VERSION : ${{ env.ANSYS_VERSION }}
124+
101125 - name : Run pytest
102126 run : make test
103127 env :
@@ -150,7 +174,7 @@ jobs:
150174 steps :
151175
152176 - name : Download all artifacts
153- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3 .0
177+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0 .0
154178 with :
155179 name : ${{ env.PACKAGE_NAME }}-artifacts
156180 path : ${{ env.PACKAGE_NAME }}-artifacts
@@ -206,7 +230,7 @@ jobs:
206230 needs : [ package ]
207231 runs-on : ubuntu-latest
208232 steps :
209- - uses : actions/checkout@v4
233+ - uses : actions/checkout@v5
210234 - name : Microsoft Teams Notification
211235212236 with :
0 commit comments