@@ -103,53 +103,58 @@ jobs:
103
103
operating-system : ${{ matrix.os }}
104
104
python-version : ${{ matrix.python-version }}
105
105
106
- tests :
107
- name : " Testing"
106
+
107
+ run-testing :
108
+ name : Test the "run" subpackage
108
109
runs-on : ubuntu-latest
109
110
needs : [smoke-tests]
111
+
110
112
steps :
113
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114
+
111
115
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112
116
- uses : ./.github/actions/unit-test
113
117
with :
114
118
python-version : ${{ env.MAIN_PYTHON_VERSION }}
115
119
github-token : ${{ secrets.GITHUB_TOKEN }}
120
+ docker-image : ${{ env.PYDYNA_RUN_CONTAINER }}
121
+ pytest-markers : run
122
+ license-server : ${{ secrets.LICENSE_SERVER }}
116
123
117
- run-testing :
118
- name : Test the "run" subpackage
119
- runs-on : ubuntu-latest
120
- needs : [code-style]
121
-
124
+ keyword-testing :
125
+ name : " Keyword testing"
126
+ runs-on : ${{ matrix.os }}
127
+ needs : [smoke-tests]
128
+ strategy :
129
+ fail-fast : false
130
+ matrix :
131
+ os : [ubuntu-latest, windows-latest]
132
+ python-version : ['3.10', '3.11', '3.12', '3.13']
122
133
steps :
123
134
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124
135
125
- - name : " Set up Python ${{ env.MAIN_PYTHON_VERSION }}"
126
- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
136
+ - uses : ./.github/actions/unit-test
137
+ with :
138
+ python-version : ${{ matrix.python-version }}
139
+ github-token : ${{ secrets.GITHUB_TOKEN }}
140
+ pytest-markers : keywords
141
+
142
+ unit-tests :
143
+ name : " Testing"
144
+ runs-on : ubuntu-latest
145
+ needs : [run-testing, keyword-testing]
146
+ steps :
147
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
148
+ - uses : ./.github/actions/unit-test
127
149
with :
128
150
python-version : ${{ env.MAIN_PYTHON_VERSION }}
129
- cache : ' pip'
130
- cache-dependency-path : ' pyproject.toml'
131
-
132
- - name : " Install python dependencies"
133
- run : |
134
- python -m pip install docker # todo make this an option?
135
- python -m pip install .[tests]
136
-
137
- - name : Pull PyDyna-run image
138
- run : |
139
- docker pull ${{ env.PYDYNA_RUN_CONTAINER }}
140
-
141
- - name : Unit testing
142
- env :
143
- PYDYNA_RUN_CONTAINER : ${{ env.PYDYNA_RUN_CONTAINER }}
144
- ANSYSLI_SERVERS : 2325@${{secrets.LICENSE_SERVER}}
145
- ANSYSLMD_LICENSE_FILE : 1055@${{secrets.LICENSE_SERVER}}
146
- LSTC_LICENSE : ansys
147
- run : |
148
- pytest -m run
151
+ github-token : ${{ secrets.GITHUB_TOKEN }}
152
+ server-logs : true
153
+
149
154
150
155
build-library :
151
156
name : " Build library"
152
- needs : [doc-build, tests, run-testing ]
157
+ needs : [doc-build, unit-tests ]
153
158
runs-on : ubuntu-latest
154
159
steps :
155
160
- uses : ansys/actions/build-library@2cf9a9c43235a000d613c2b13e64c954232a4553 # v9.0.15
0 commit comments