Skip to content

Commit ac5dd0b

Browse files
authored
Merge branch 'main' into version
2 parents e50519a + b354427 commit ac5dd0b

File tree

18 files changed

+9696
-9
lines changed

18 files changed

+9696
-9
lines changed

.github/workflows/pipeline.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
cd example_workflows/nfdi/
7070
papermill aiida.ipynb aiida_out.ipynb -k "python3"
7171
papermill cwl.ipynb cwl_out.ipynb -k "python3"
72+
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
7273
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
7374
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
7475
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
@@ -104,6 +105,7 @@ jobs:
104105
cd example_workflows/quantum_espresso
105106
papermill aiida.ipynb aiida_out.ipynb -k "python3"
106107
papermill cwl.ipynb cwl_out.ipynb -k "python3"
108+
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
107109
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
108110
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
109111
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
@@ -133,6 +135,7 @@ jobs:
133135
cd example_workflows/arithmetic
134136
papermill aiida.ipynb aiida_out.ipynb -k "python3"
135137
papermill cwl.ipynb cwl_out.ipynb -k "python3"
138+
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
136139
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
137140
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
138141
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
@@ -159,3 +162,69 @@ jobs:
159162
jupyter-book build . --path-output public
160163
mv public/_build/html public_html
161164
touch public_html/.nojekyll
165+
166+
unittest_matrix:
167+
runs-on: ${{ matrix.operating-system }}
168+
strategy:
169+
matrix:
170+
include:
171+
- operating-system: macos-latest
172+
python-version: '3.12'
173+
174+
- operating-system: ubuntu-latest
175+
python-version: '3.12'
176+
177+
- operating-system: ubuntu-latest
178+
python-version: '3.11'
179+
180+
steps:
181+
- uses: actions/checkout@v4
182+
- name: Setup environment
183+
shell: bash -l {0}
184+
run: |
185+
echo -e "channels:\n - conda-forge\n" > .condarc
186+
sed '/- python/d' binder/environment.yml > environment.yml
187+
- name: Setup Mambaforge
188+
uses: conda-incubator/setup-miniconda@v3
189+
with:
190+
python-version: ${{ matrix.python-version }}
191+
miniforge-version: latest
192+
condarc-file: .condarc
193+
environment-file: environment.yml
194+
- name: Test
195+
shell: bash -l {0}
196+
timeout-minutes: 30
197+
run: |
198+
verdi presto --profile-name pwd
199+
pip install . --no-deps --no-build-isolation
200+
python -m unittest discover tests
201+
202+
coverage:
203+
runs-on: ubuntu-latest
204+
steps:
205+
- uses: actions/checkout@v4
206+
- name: Setup environment
207+
shell: bash -l {0}
208+
run: |
209+
echo -e "channels:\n - conda-forge\n" > .condarc
210+
sed '/- python/d' binder/environment.yml > environment.yml
211+
echo '- coverage' >> environment.yml
212+
- name: Setup Mambaforge
213+
uses: conda-incubator/setup-miniconda@v3
214+
with:
215+
python-version: '3.12'
216+
miniforge-version: latest
217+
condarc-file: .condarc
218+
environment-file: environment.yml
219+
- name: Test
220+
shell: bash -l {0}
221+
timeout-minutes: 30
222+
run: |
223+
verdi presto --profile-name pwd
224+
pip install . --no-deps --no-build-isolation
225+
coverage run
226+
coverage xml
227+
- name: Upload coverage reports to Codecov
228+
uses: codecov/codecov-action@v5
229+
with:
230+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Python Workflow Definition
22
[![Pipeline](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml/badge.svg)](https://github.com/pythonworkflow/python-workflow-definition/actions/workflows/pipeline.yml)
3+
[![codecov](https://codecov.io/github/pythonworkflow/python-workflow-definition/graph/badge.svg?token=3JXD1GN8LG)](https://codecov.io/github/pythonworkflow/python-workflow-definition)
34
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pythonworkflow/python-workflow-definition/HEAD)
45
[![DOI](https://zenodo.org/badge/945869529.svg)](https://doi.org/10.5281/zenodo.15516179)
56

binder/environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ dependencies:
44
- python =3.12
55
- click =8.1.8
66
- pydantic =2.12.4
7-
- hatchling =1.27.0
7+
- hatchling =1.28.0
88
- hatch-vcs =0.5.0
99
- httpcore =1.0.7
1010
- jobflow =0.2.1
11-
- pyiron_base =0.15.10
11+
- executorlib =1.7.4
12+
- pyiron_base =0.15.12
1213
- pyiron_workflow =0.15.4
1314
- pygraphviz =1.14
1415
- aiida-workgraph =0.7.6

0 commit comments

Comments
 (0)