Skip to content

fix attempt

fix attempt #35

Workflow file for this run

name: Run workflow
on:
push:
branches: [ main ]
pull_request:
types: [labeled, opened, synchronize, reopened]
workflow_call:
jobs:
run_workflow:
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'run_workflow' ) &&
github.event.actor.login != 'ci')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: pyiron/actions/[email protected]
with:
python-version: '3.11'
env-files: .ci_support/environment.yml
local-code-directory: ''
use-cache: 'true'
miniforge-channels: conda-forge
pip-install-versioneer: 'false'
no-build-isolation: 'false'
- name: Add papermill and jupyter
shell: bash -l {0}
run: mamba install -n my-env jupyter papermill
- name: Execute workflow
shell: bash -l {0}
run: mkdir ci_output && papermill workflow.ipynb ci_output/workflow-out.ipynb -k python3
- name: Upload updated notebook as artifact
uses: actions/upload-artifact@v4
with:
name: workflow-out.ipynb
path: ./workflow-out.ipynb
- name: push updated notebook back into the repository
uses: actions/checkout@v4
shell: bash -l {0}
run: |
git config user.name "ci"
git config user.email "[email protected]"
git add ci_output/workflow-out.ipynb
git commit -m "push updated notebook to 'ci_output/workflow-out.ipynb'"
git push