-
Notifications
You must be signed in to change notification settings - Fork 1
FIX: split the workflow #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
dipinknair
wants to merge
15
commits into
main
Choose a base branch
from
fix/split-workflow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
db37aff
split the workflow
dipinknair 9ce0865
remove containers after run
dipinknair c4f735c
fix dpf
dipinknair bcc74fb
Apply suggestions from code review
RobPasMue f4ee288
Update .github/workflows/geometry-mechanical-dpf.yml
RobPasMue bbbe036
Merge branch 'main' into fix/split-workflow
RobPasMue 030bf82
update dpf
dipinknair 1efae3e
test ansys-version
dipinknair f612d56
env
dipinknair c643a02
Merge branch 'main' into fix/split-workflow
RobPasMue 9341647
Apply suggestions from code review
RobPasMue 1521624
Update .github/workflows/geometry-mechanical-dpf.yml
RobPasMue 828b609
Update geometry-mechanical-dpf/03_dpf.py
RobPasMue 4beb385
review change
dipinknair 064ae67
Merge branch 'main' into fix/split-workflow
dipinknair File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,8 +84,8 @@ jobs: | |
docker rm $dockerContainers | ||
} | ||
|
||
mech-dpf: | ||
name: Mechanical - Dpf | ||
mechanical: | ||
name: Mechanical | ||
runs-on: ubuntu-latest-8-cores | ||
needs: geometry | ||
strategy: | ||
|
@@ -111,15 +111,15 @@ jobs: | |
apt install software-properties-common -y | ||
add-apt-repository ppa:deadsnakes/ppa -y | ||
apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv | ||
python${{ env.MAIN_PYTHON_VERSION }} -m venv /env | ||
python${{ env.MAIN_PYTHON_VERSION }} -m venv .venv | ||
|
||
- name: Install dependencies | ||
run: | | ||
. /env/bin/activate | ||
. .venv/bin/activate | ||
python -m pip install --upgrade pip | ||
pip install -r geometry-mechanical-dpf/requirements_${{ matrix.ansys-release }}.txt | ||
|
||
- name: Check out the geometry outputs | ||
- name: Download the geometry outputs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: geometry-outputs-${{ matrix.ansys-release }} | ||
|
@@ -137,14 +137,68 @@ jobs: | |
xvfb-run mechanical-env python geometry-mechanical-dpf/02_mechanical.py > pymechlogs${{ matrix.ansys-release }}.txt 2>&1 || true | ||
cat pymechlogs${{ matrix.ansys-release }}.txt | ||
|
||
- name: Store the outputs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mechanical-outputs-${{ matrix.ansys-release }} | ||
path: geometry-mechanical-dpf/outputs | ||
|
||
|
||
dpf: | ||
name: Data Processing Framework | ||
runs-on: ubuntu-latest | ||
needs: mechanical | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ansys-release: [24.1, 24.2] | ||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: 'geometry-mechanical-dpf' | ||
|
||
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r geometry-mechanical-dpf/requirements_${{ matrix.ansys-release }}.txt | ||
|
||
- name: Update ansys-version for DPF | ||
run: | | ||
ansys_version=${{ matrix.ansys-release }} | ||
ansys_version_no_dot=${ansys_version//./} | ||
echo ansys_version=$ansys_version_no_dot >> $GITHUB_ENV | ||
|
||
- name: "Install DPF server" | ||
id: set-server-path | ||
uses: ansys/pydpf-actions/[email protected] | ||
with: | ||
dpf-standalone-TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | ||
ANSYS_VERSION : ${{env.ansys_version}} | ||
|
||
- name: Download the mechanical outputs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: mechanical-outputs-${{ matrix.ansys-release }} | ||
path: geometry-mechanical-dpf/outputs | ||
|
||
- name: Run the PyDPF script | ||
run: | | ||
. /env/bin/activate | ||
xvfb-run python geometry-mechanical-dpf/03_dpf.py > pydpflogs${{ matrix.ansys-release }}.txt 2>&1 || true | ||
cat pydpflogs${{ matrix.ansys-release }}.txt | ||
|
||
- name: Store the outputs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pymechanical-dpf-outputs-${{ matrix.ansys-release }} | ||
name: dpf-outputs-${{ matrix.ansys-release }} | ||
path: geometry-mechanical-dpf/outputs | ||
|
||
- name: "Kill all servers" | ||
uses: ansys/pydpf-actions/[email protected] | ||
if: always() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.