Skip to content

Commit 0b4f14d

Browse files
all tests
1 parent 8d25a7a commit 0b4f14d

File tree

1 file changed

+178
-178
lines changed

1 file changed

+178
-178
lines changed

.github/workflows/ci.yml

Lines changed: 178 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -68,82 +68,82 @@ jobs:
6868
echo "suffix=$suffix" >> "$GITHUB_OUTPUT"
6969
fi
7070
echo "branch suffix is: >$suffix<"
71-
#
72-
# style:
73-
# name: "Style Check"
74-
# runs-on: ubuntu-latest
75-
# steps:
76-
# - uses: ansys/actions/code-style@v8
77-
# with:
78-
# use-python-cache: false
79-
#
80-
# build_linux1:
81-
# name: "Build linux1 wheel"
82-
# runs-on: ubuntu-latest
83-
# steps:
84-
# - uses: actions/checkout@v4
85-
#
86-
# - name: "Install requirements"
87-
# run: pip install -r requirements/requirements_build.txt
88-
#
89-
# - name: "Build the manylinux1 wheel"
90-
# shell: bash
91-
# id: wheel
92-
# run: |
93-
# python .ci/build_wheel.py -p manylinux1
94-
# cd dist
95-
# export name=`ls ansys_dpf_core*.whl`
96-
# echo ${name}
97-
# echo "wheel_name=${name[0]}" >> $GITHUB_OUTPUT
98-
# cd ..
99-
#
100-
# - name: "Upload wheel any as artifact"
101-
# uses: actions/upload-artifact@v4
102-
# with:
103-
# name: ${{ steps.wheel.outputs.wheel_name }}
104-
# path: dist/${{ steps.wheel.outputs.wheel_name }}
105-
#
106-
# tests:
107-
# uses: ./.github/workflows/tests.yml
108-
# needs: pick_server_suffix
109-
# with:
110-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
111-
# python_versions: '["3.9"]'
112-
# wheel: true
113-
# wheelhouse: false
114-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
115-
# secrets: inherit
116-
#
117-
# tests_any:
118-
# uses: ./.github/workflows/tests.yml
119-
# needs: pick_server_suffix
120-
# with:
121-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
122-
# python_versions: '["3.9"]'
123-
# wheel: true
124-
# wheelhouse: false
125-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
126-
# test_any: true
127-
# secrets: inherit
128-
#
129-
# docker_tests:
130-
# name: "Build and Test on Docker"
131-
# uses: ./.github/workflows/test_docker.yml
132-
# needs: pick_server_suffix
133-
# with:
134-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
135-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
136-
# secrets: inherit
137-
#
138-
# docker_examples:
139-
# name: "Run examples on Docker"
140-
# uses: ./.github/workflows/examples_docker.yml
141-
# needs: pick_server_suffix
142-
# with:
143-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
144-
# python_versions: '["3.9"]'
145-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
146-
# secrets: inherit
71+
72+
style:
73+
name: "Style Check"
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: ansys/actions/code-style@v8
77+
with:
78+
use-python-cache: false
79+
80+
build_linux1:
81+
name: "Build linux1 wheel"
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/checkout@v4
85+
86+
- name: "Install requirements"
87+
run: pip install -r requirements/requirements_build.txt
88+
89+
- name: "Build the manylinux1 wheel"
90+
shell: bash
91+
id: wheel
92+
run: |
93+
python .ci/build_wheel.py -p manylinux1
94+
cd dist
95+
export name=`ls ansys_dpf_core*.whl`
96+
echo ${name}
97+
echo "wheel_name=${name[0]}" >> $GITHUB_OUTPUT
98+
cd ..
99+
100+
- name: "Upload wheel any as artifact"
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: ${{ steps.wheel.outputs.wheel_name }}
104+
path: dist/${{ steps.wheel.outputs.wheel_name }}
105+
106+
tests:
107+
uses: ./.github/workflows/tests.yml
108+
needs: pick_server_suffix
109+
with:
110+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
111+
python_versions: '["3.9"]'
112+
wheel: true
113+
wheelhouse: false
114+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
115+
secrets: inherit
116+
117+
tests_any:
118+
uses: ./.github/workflows/tests.yml
119+
needs: pick_server_suffix
120+
with:
121+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
122+
python_versions: '["3.9"]'
123+
wheel: true
124+
wheelhouse: false
125+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
126+
test_any: true
127+
secrets: inherit
128+
129+
docker_tests:
130+
name: "Build and Test on Docker"
131+
uses: ./.github/workflows/test_docker.yml
132+
needs: pick_server_suffix
133+
with:
134+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
135+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
136+
secrets: inherit
137+
138+
docker_examples:
139+
name: "Run examples on Docker"
140+
uses: ./.github/workflows/examples_docker.yml
141+
needs: pick_server_suffix
142+
with:
143+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
144+
python_versions: '["3.9"]'
145+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
146+
secrets: inherit
147147

148148
docs:
149149
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
@@ -155,105 +155,105 @@ jobs:
155155
event_name: ${{ github.event_name }}
156156
secrets: inherit
157157

158-
# upload-development-docs:
159-
# runs-on: ubuntu-latest
160-
# if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
161-
# needs: [docs]
162-
# steps:
163-
# - name: "Upload development documentation"
164-
# uses: ansys/actions/doc-deploy-dev@v8
165-
# with:
166-
# cname: ${{ env.DOCUMENTATION_CNAME }}
167-
# token: ${{ secrets.GITHUB_TOKEN }}
168-
# doc-artifact-name: HTML-doc-ansys-dpf-core.zip
169-
# decompress-artifact: true
170-
#
171-
# doc-index-dev:
172-
# name: "Deploy dev index docs"
173-
# runs-on: ubuntu-latest
174-
# needs: upload-development-docs
175-
# steps:
176-
# - name: "Deploy the latest documentation index"
177-
# uses: ansys/actions/doc-deploy-index@v8
178-
# with:
179-
# cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
180-
# index-name: pydpf-core-vdev
181-
# host-url: ${{ vars.MEILISEARCH_HOST_URL }}
182-
# api-key: ${{ env.MEILISEARCH_API_KEY }}
183-
# doc-artifact-name: HTML-doc-ansys-dpf-core.zip
184-
# decompress-artifact: true
185-
#
186-
# examples:
187-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
188-
# uses: ./.github/workflows/examples.yml
189-
# needs: pick_server_suffix
190-
# with:
191-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
192-
# python_versions: '["3.9"]'
193-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
194-
# secrets: inherit
195-
#
196-
# retro_242:
197-
# name: "retro 242"
198-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
199-
# uses: ./.github/workflows/tests.yml
200-
# with:
201-
# ANSYS_VERSION: "242"
202-
# python_versions: '["3.9"]'
203-
# DOCSTRING: false
204-
# standalone_suffix: ''
205-
# secrets: inherit
206-
#
207-
# retro_241:
208-
# name: "retro 241"
209-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
210-
# uses: ./.github/workflows/tests.yml
211-
# with:
212-
# ANSYS_VERSION: "241"
213-
# python_versions: '["3.9"]'
214-
# DOCSTRING: false
215-
# standalone_suffix: '.sp01'
216-
# secrets: inherit
217-
#
218-
# retro_232:
219-
# name: "retro 232"
220-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
221-
# uses: ./.github/workflows/tests.yml
222-
# with:
223-
# ANSYS_VERSION: "232"
224-
# python_versions: '["3.9"]'
225-
# DOCSTRING: false
226-
# standalone_suffix: ''
227-
# secrets: inherit
228-
#
229-
# retro_231:
230-
# name: "retro 231"
231-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
232-
# uses: ./.github/workflows/tests.yml
233-
# with:
234-
# ANSYS_VERSION: "231"
235-
# python_versions: '["3.9"]'
236-
# DOCSTRING: false
237-
# secrets: inherit
238-
#
239-
# retro_222:
240-
# name: "retro 222"
241-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
242-
# uses: ./.github/workflows/tests.yml
243-
# with:
244-
# ANSYS_VERSION: "222"
245-
# python_versions: '["3.9"]'
246-
# DOCSTRING: false
247-
# secrets: inherit
248-
#
249-
# pydpf-post:
250-
# name: "PyDPF-Post"
251-
# if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
252-
# uses: ./.github/workflows/pydpf-post.yml
253-
# needs: pick_server_suffix
254-
# with:
255-
# ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
256-
# post_branch: "master"
257-
# standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
258-
# test_docstrings: "true"
259-
# secrets: inherit
158+
upload-development-docs:
159+
runs-on: ubuntu-latest
160+
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
161+
needs: [docs]
162+
steps:
163+
- name: "Upload development documentation"
164+
uses: ansys/actions/doc-deploy-dev@v8
165+
with:
166+
cname: ${{ env.DOCUMENTATION_CNAME }}
167+
token: ${{ secrets.GITHUB_TOKEN }}
168+
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
169+
decompress-artifact: true
170+
171+
doc-index-dev:
172+
name: "Deploy dev index docs"
173+
runs-on: ubuntu-latest
174+
needs: upload-development-docs
175+
steps:
176+
- name: "Deploy the latest documentation index"
177+
uses: ansys/actions/doc-deploy-index@v8
178+
with:
179+
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
180+
index-name: pydpf-core-vdev
181+
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
182+
api-key: ${{ env.MEILISEARCH_API_KEY }}
183+
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
184+
decompress-artifact: true
185+
186+
examples:
187+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
188+
uses: ./.github/workflows/examples.yml
189+
needs: pick_server_suffix
190+
with:
191+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
192+
python_versions: '["3.9"]'
193+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
194+
secrets: inherit
195+
196+
retro_242:
197+
name: "retro 242"
198+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
199+
uses: ./.github/workflows/tests.yml
200+
with:
201+
ANSYS_VERSION: "242"
202+
python_versions: '["3.9"]'
203+
DOCSTRING: false
204+
standalone_suffix: ''
205+
secrets: inherit
206+
207+
retro_241:
208+
name: "retro 241"
209+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
210+
uses: ./.github/workflows/tests.yml
211+
with:
212+
ANSYS_VERSION: "241"
213+
python_versions: '["3.9"]'
214+
DOCSTRING: false
215+
standalone_suffix: '.sp01'
216+
secrets: inherit
217+
218+
retro_232:
219+
name: "retro 232"
220+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
221+
uses: ./.github/workflows/tests.yml
222+
with:
223+
ANSYS_VERSION: "232"
224+
python_versions: '["3.9"]'
225+
DOCSTRING: false
226+
standalone_suffix: ''
227+
secrets: inherit
228+
229+
retro_231:
230+
name: "retro 231"
231+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
232+
uses: ./.github/workflows/tests.yml
233+
with:
234+
ANSYS_VERSION: "231"
235+
python_versions: '["3.9"]'
236+
DOCSTRING: false
237+
secrets: inherit
238+
239+
retro_222:
240+
name: "retro 222"
241+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
242+
uses: ./.github/workflows/tests.yml
243+
with:
244+
ANSYS_VERSION: "222"
245+
python_versions: '["3.9"]'
246+
DOCSTRING: false
247+
secrets: inherit
248+
249+
pydpf-post:
250+
name: "PyDPF-Post"
251+
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
252+
uses: ./.github/workflows/pydpf-post.yml
253+
needs: pick_server_suffix
254+
with:
255+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
256+
post_branch: "master"
257+
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
258+
test_docstrings: "true"
259+
secrets: inherit

0 commit comments

Comments
 (0)