GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” ๐Ÿ› `binder/apt.txt`: use Noble Mesa names (#225) ยท pythonworkflow/python-workflow-definition@06a36f8

Pipeline

โ™ป๏ธ notebooks: use Python sources #567

Sign in to view logs
  • Sign in to view logs

Workflow file for this run

.github/workflows/pipeline.yml at 06a36f8
name: Pipeline
on:
push:
branches: [ main ]
pull_request:
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --diff"
src: ./src/python_workflow_definition
- uses: psf/black@stable
with:
options: "--check --diff"
src: ./example_workflows/quantum_espresso/qe_xml_parser/src/qe_xml_parser
mypy:
needs: [black]
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Install mypy
run: pip install mypy
- name: Test
run: mypy --ignore-missing-imports src/python_workflow_definition
pip_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v4
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: binder/environment.yml
- name: Pip check
shell: bash -l {0}
run: |
pip install --no-deps --no-build-isolation -e .
pip check
nfdi4ing:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- uses: conda-incubator/setup-miniconda@v4
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: binder/environment.yml
- name: Installation and setup
shell: bash -l {0}
run: |
pip install --no-deps --no-build-isolation -e .
conda install -c conda-forge jupyter papermill jupytext
verdi presto --profile-name pwd
xargs -r -a binder/apt.txt sudo apt-get install -y
- name: Create Additional Conda Environments
shell: bash -l {0}
run: |
conda env create -n preprocessing -f example_workflows/nfdi/source/envs/preprocessing.yaml -y
conda env create -n processing -f example_workflows/nfdi/source/envs/processing.yaml -y
conda env create -n postprocessing -f example_workflows/nfdi/source/envs/postprocessing.yaml -y
- name: Tests
shell: bash -el {0}
run: |
bash .github/scripts/generate-notebooks.sh example_workflows/nfdi/*_notebook.py
cd example_workflows/nfdi/
papermill aiida.ipynb aiida_out.ipynb -k "python3"
papermill cwl.ipynb cwl_out.ipynb -k "python3"
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
- name: Upload executed notebooks
uses: actions/upload-artifact@v4
with:
name: executed-notebooks-nfdi
path: example_workflows/nfdi/*_out.ipynb
if-no-files-found: error
quantumespresso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup environment
shell: bash -l {0}
run: |
echo -e "channels:\n - conda-forge\n" > .condarc
tail --lines=+4 example_workflows/quantum_espresso/environment.yml >> binder/environment.yml
- uses: conda-incubator/setup-miniconda@v4
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: binder/environment.yml
- name: Installation and setup
shell: bash -l {0}
run: |
pip install --no-deps --no-build-isolation -e example_workflows/quantum_espresso/qe_xml_parser
pip install --no-deps --no-build-isolation -e .
conda install -c conda-forge jupyter papermill jupytext
verdi presto --profile-name pwd
- name: Tests
shell: bash -el {0}
run: |
export ESPRESSO_PSEUDO="$PWD/espresso/pseudo"
cp -r example_workflows/quantum_espresso/espresso .
bash .github/scripts/generate-notebooks.sh example_workflows/quantum_espresso/*_notebook.py
cd example_workflows/quantum_espresso
papermill aiida.ipynb aiida_out.ipynb -k "python3"
papermill cwl.ipynb cwl_out.ipynb -k "python3"
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
- name: Upload executed notebooks
uses: actions/upload-artifact@v4
with:
name: executed-notebooks-quantum_espresso
path: example_workflows/quantum_espresso/*_out.ipynb
if-no-files-found: error
arithmetic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- uses: conda-incubator/setup-miniconda@v4
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: binder/environment.yml
- name: Installation and setup
shell: bash -l {0}
run: |
pip install --no-deps --no-build-isolation -e .
conda install -c conda-forge jupyter papermill jupytext
verdi presto --profile-name pwd
- name: Tests
shell: bash -el {0}
run: |
bash .github/scripts/generate-notebooks.sh example_workflows/arithmetic/*_notebook.py
cd example_workflows/arithmetic
papermill aiida.ipynb aiida_out.ipynb -k "python3"
papermill cwl.ipynb cwl_out.ipynb -k "python3"
papermill executorlib.ipynb executorlib_out.ipynb -k "python3"
papermill jobflow.ipynb jobflow_out.ipynb -k "python3"
papermill pyiron_base.ipynb pyiron_base_out.ipynb -k "python3"
papermill pyiron_workflow.ipynb pyiron_workflow_out.ipynb -k "python3"
papermill universal_workflow.ipynb universal_workflow_out.ipynb -k "python3"
- name: Upload executed notebooks
uses: actions/upload-artifact@v4
with:
name: executed-notebooks-arithmetic
path: example_workflows/arithmetic/*_out.ipynb
if-no-files-found: error
documentation:
needs: [nfdi4ing, quantumespresso, arithmetic]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- uses: conda-incubator/setup-miniconda@v4
with:
python-version: "3.12"
miniforge-version: latest
condarc-file: .condarc
environment-file: documentation/environment.yml
- name: Prepare book
shell: bash -l {0}
run: |
cp documentation/_config.yml .
cp documentation/_toc.yml .
cp documentation/*.md .
cp documentation/*.png .
- name: Collect executed notebooks
uses: actions/download-artifact@v4
with:
name: executed-notebooks-arithmetic
path: example_workflows/arithmetic/
- name: Collect executed nfdi notebooks
uses: actions/download-artifact@v4
with:
name: executed-notebooks-nfdi
path: example_workflows/nfdi/
- name: Collect executed qe notebooks
uses: actions/download-artifact@v4
with:
name: executed-notebooks-quantum_espresso
path: example_workflows/quantum_espresso/
- name: Build book with outputs
shell: bash -el {0}
run: |
for directory in arithmetic nfdi quantum_espresso; do
for engine in aiida cwl executorlib jobflow pyiron_base pyiron_workflow universal_workflow; do
mv "example_workflows/$directory/${engine}_out.ipynb" "example_workflows/$directory/$engine.ipynb"
done
done
jupyter-book build . --path-output public
mv public/_build/html public_html
touch public_html/.nojekyll
- name: Upload book
uses: actions/upload-artifact@v4
with:
name: documentation
path: public_html/
if-no-files-found: error
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public_html
clean: true
unittest_matrix:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
include:
- operating-system: macos-latest
python-version: '3.12'
- operating-system: ubuntu-latest
python-version: '3.12'
- operating-system: ubuntu-latest
python-version: '3.11'
steps:
- uses: actions/checkout@v6
- name: Setup environment
shell: bash -l {0}
run: |
echo -e "channels:\n - conda-forge\n" > .condarc
sed '/- python/d' binder/environment.yml > environment.yml
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v4
with:
python-version: ${{ matrix.python-version }}
miniforge-version: latest
condarc-file: .condarc
environment-file: environment.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 30
run: |
verdi presto --profile-name pwd
pip install . --no-deps --no-build-isolation
python -m unittest discover tests
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup environment
shell: bash -l {0}
run: |
echo -e "channels:\n - conda-forge\n" > .condarc
sed '/- python/d' binder/environment.yml > environment.yml
echo '- coverage' >> environment.yml
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v4
with:
python-version: '3.12'
miniforge-version: latest
condarc-file: .condarc
environment-file: environment.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 30
run: |
verdi presto --profile-name pwd
pip install . --no-deps --no-build-isolation
coverage run
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.