From 2467df86eb46e5bd8b7b38abd3f260047075bb9e Mon Sep 17 00:00:00 2001 From: liamhuber Date: Tue, 27 Aug 2024 13:37:36 -0700 Subject: [PATCH 1/7] Target branch --- .github/workflows/dependabot-pr.yml | 2 +- .github/workflows/pr-labeled.yml | 4 ++-- .github/workflows/push-pull.yml | 22 +++++++++++----------- .github/workflows/pyproject-release.yml | 4 ++-- .github/workflows/tests-and-coverage.yml | 4 ++-- README.md | 2 +- build-docs/action.yml | 4 ++-- build-notebooks/action.yml | 4 ++-- cached-miniforge/action.yml | 2 +- pip-check/action.yml | 2 +- unit-tests/action.yml | 4 ++-- 11 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/dependabot-pr.yml b/.github/workflows/dependabot-pr.yml index bdd62e81..b0218dce 100644 --- a/.github/workflows/dependabot-pr.yml +++ b/.github/workflows/dependabot-pr.yml @@ -19,7 +19,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR fetch-depth: 0 # otherwise, you will fail to push refs to dest repo token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }} - - uses: pyiron/actions/update-env-files@main + - uses: pyiron/actions/update-env-files@v3.3.0 - name: UpdateDependabotPR commit run: | git config --local user.email "pyiron@mpie.de" diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 8b9cfe1c..14fcad49 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -43,10 +43,10 @@ jobs: tests-and-coverage: if: contains(github.event.pull_request.labels.*.name, 'run_coverage') - uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@main + uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@v3.3.0 secrets: inherit code-ql: if: contains(github.event.pull_request.labels.*.name, 'run_CodeQL') - uses: pyiron/actions/.github/workflows/codeql.yml@main + uses: pyiron/actions/.github/workflows/codeql.yml@v3.3.0 secrets: inherit \ No newline at end of file diff --git a/.github/workflows/push-pull.yml b/.github/workflows/push-pull.yml index a5383929..4300412c 100644 --- a/.github/workflows/push-pull.yml +++ b/.github/workflows/push-pull.yml @@ -182,11 +182,11 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR fetch-depth: 0 # otherwise, you will fail to push refs to dest repo if: ${{ inputs.do-commit-updated-env }} - - uses: pyiron/actions/write-docs-env@main + - uses: pyiron/actions/write-docs-env@v3.3.0 with: env-files: ${{ inputs.docs-env-files }} if: ${{ inputs.do-commit-updated-env }} - - uses: pyiron/actions/write-environment@main + - uses: pyiron/actions/write-environment@v3.3.0 with: env-files: ${{ inputs.notebooks-env-files }} output-env-file: .binder/environment.yml @@ -213,7 +213,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/build-docs@main + - uses: pyiron/actions/build-docs@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.docs-env-files }} @@ -224,7 +224,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/build-notebooks@main + - uses: pyiron/actions/build-notebooks@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.notebooks-env-files }} @@ -261,11 +261,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@main + - uses: pyiron/actions/add-to-python-path@v3.3.0 if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@main + - uses: pyiron/actions/unit-tests@v3.3.0 with: python-version: ${{ matrix.python-version }} env-files: ${{ inputs.tests-env-files }} @@ -276,7 +276,7 @@ jobs: coveralls-and-codacy: needs: commit-updated-env if: ${{ inputs.do-coveralls || inputs.do-codacy }} - uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@main + uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@v3.3.0 secrets: inherit with: tests-env-files: ${{ inputs.tests-env-files }} @@ -295,7 +295,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/unit-tests@main + - uses: pyiron/actions/unit-tests@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.tests-env-files }} @@ -308,11 +308,11 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@main + - uses: pyiron/actions/add-to-python-path@v3.3.0 if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@main + - uses: pyiron/actions/unit-tests@v3.3.0 with: python-version: ${{ inputs.alternate-tests-python-version }} env-files: ${{ inputs.alternate-tests-env-files }} @@ -326,7 +326,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/pip-check@main + - uses: pyiron/actions/pip-check@v3.3.0 with: python-version: ${{ inputs.python-version }} diff --git a/.github/workflows/pyproject-release.yml b/.github/workflows/pyproject-release.yml index 905c54b7..0c7d9608 100644 --- a/.github/workflows/pyproject-release.yml +++ b/.github/workflows/pyproject-release.yml @@ -79,11 +79,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/cached-miniforge@main + - uses: pyiron/actions/cached-miniforge@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.env-files }} - - uses: pyiron/actions/update-pyproject-dependencies@main + - uses: pyiron/actions/update-pyproject-dependencies@v3.3.0 with: input-toml: ${{ inputs.input-toml }} lower-bound-yaml: ${{ inputs.lower-bound-yaml }} diff --git a/.github/workflows/tests-and-coverage.yml b/.github/workflows/tests-and-coverage.yml index 971f267a..cc70505c 100644 --- a/.github/workflows/tests-and-coverage.yml +++ b/.github/workflows/tests-and-coverage.yml @@ -64,11 +64,11 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@main + - uses: pyiron/actions/add-to-python-path@v3.3.0 if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@main + - uses: pyiron/actions/unit-tests@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.tests-env-files }} diff --git a/README.md b/README.md index 2f84c311..d8897942 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ on: jobs: pyiron: - uses: pyiron/actions/.github/workflows/push-pull.yml@main + uses: pyiron/actions/.github/workflows/push-pull.yml@v3.3.0 secrets: inherit ``` diff --git a/build-docs/action.yml b/build-docs/action.yml index 0339b7cc..b9d854fa 100644 --- a/build-docs/action.yml +++ b/build-docs/action.yml @@ -21,11 +21,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@main + - uses: pyiron/actions/cached-miniforge@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-docs-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@main + - uses: pyiron/actions/pyiron-config@v3.3.0 - name: Build sphinx documentation shell: bash -l {0} run: | diff --git a/build-notebooks/action.yml b/build-notebooks/action.yml index cc44f01a..a62a0c15 100644 --- a/build-notebooks/action.yml +++ b/build-notebooks/action.yml @@ -24,11 +24,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@main + - uses: pyiron/actions/cached-miniforge@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-notebooks-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@main + - uses: pyiron/actions/pyiron-config@v3.3.0 - name: Build notebooks shell: bash -l {0} run: $GITHUB_ACTION_PATH/../.support/build_notebooks.sh ${{ inputs.notebooks-dir }} ${{ inputs.exclusion-file }} \ No newline at end of file diff --git a/cached-miniforge/action.yml b/cached-miniforge/action.yml index f333c4df..e5261ae7 100644 --- a/cached-miniforge/action.yml +++ b/cached-miniforge/action.yml @@ -71,7 +71,7 @@ inputs: runs: using: "composite" steps: - - uses: pyiron/actions/write-environment@main + - uses: pyiron/actions/write-environment@v3.3.0 with: env-files: ${{ inputs.env-files }} - name: Env name backwards compatibility patch diff --git a/pip-check/action.yml b/pip-check/action.yml index b94825bd..c464e1cd 100644 --- a/pip-check/action.yml +++ b/pip-check/action.yml @@ -13,7 +13,7 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@main + - uses: pyiron/actions/cached-miniforge@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.env-files }} diff --git a/unit-tests/action.yml b/unit-tests/action.yml index e3dd9761..8cf4b32e 100644 --- a/unit-tests/action.yml +++ b/unit-tests/action.yml @@ -35,11 +35,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@main + - uses: pyiron/actions/cached-miniforge@v3.3.0 with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-unittests-env-file }} ${{ inputs.coveralls-codacy-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@main + - uses: pyiron/actions/pyiron-config@v3.3.0 - name: Test shell: bash -l {0} run: | From bd406052215b2151277742acf42825c71d285209 Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Tue, 3 Sep 2024 16:56:03 +0200 Subject: [PATCH 2/7] specify kernel in '.support/build_notebooks.sh' --- .support/build_notebooks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.support/build_notebooks.sh b/.support/build_notebooks.sh index 6e5886cb..21dfd938 100755 --- a/.support/build_notebooks.sh +++ b/.support/build_notebooks.sh @@ -13,7 +13,7 @@ fi # execute notebooks i=0; for notebook in $(find ${NOTEBOOKS_DIR} -type f -name '*.ipynb'); do - papermill ${notebook} ${notebook%.*}-out.${notebook##*.} || i=$((i+1)); + papermill ${notebook} ${notebook%.*}-out.${notebook##*.} -k python3 || i=$((i+1)); done; # push error to next level From 33c035c328f6f66342261e5d1207f9fcc0545847 Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Wed, 4 Sep 2024 11:34:58 +0200 Subject: [PATCH 3/7] add a variable 'KERNEL' passed via commandline; defaults to 'python3' --- .support/build_notebooks.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.support/build_notebooks.sh b/.support/build_notebooks.sh index 21dfd938..236be449 100755 --- a/.support/build_notebooks.sh +++ b/.support/build_notebooks.sh @@ -2,6 +2,7 @@ NOTEBOOKS_DIR=$1 EXCLUSION_FILE=$2 +KERNEL=$3 # Remove excluded notebooks if [ ${EXCLUSION_FILE} != "" ]; then @@ -10,10 +11,15 @@ if [ ${EXCLUSION_FILE} != "" ]; then done; fi +# Set the kernel to be used by papermill to 'python3' if not specified otherwise +if [ ${KERNEL} = "" ]; then + KERNEL=python3; +fi + # execute notebooks i=0; for notebook in $(find ${NOTEBOOKS_DIR} -type f -name '*.ipynb'); do - papermill ${notebook} ${notebook%.*}-out.${notebook##*.} -k python3 || i=$((i+1)); + papermill ${notebook} ${notebook%.*}-out.${notebook##*.} -k ${KERNEL} || i=$((i+1)); done; # push error to next level From 3ff4542e410c84610b276bb3cb283331a9c8fd2f Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Wed, 4 Sep 2024 11:38:12 +0200 Subject: [PATCH 4/7] fix syntax; Single bracket conditionals [ ... <=/!=/...> ...] require double-quoting variables --- .support/build_notebooks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.support/build_notebooks.sh b/.support/build_notebooks.sh index 236be449..cfb0991d 100755 --- a/.support/build_notebooks.sh +++ b/.support/build_notebooks.sh @@ -5,14 +5,14 @@ EXCLUSION_FILE=$2 KERNEL=$3 # Remove excluded notebooks -if [ ${EXCLUSION_FILE} != "" ]; then +if [ "${EXCLUSION_FILE}" != "" ]; then for f in $(cat ${EXCLUSION_FILE}); do rm "${NOTEBOOKS_DIR}/$f"; done; fi # Set the kernel to be used by papermill to 'python3' if not specified otherwise -if [ ${KERNEL} = "" ]; then +if [ "${KERNEL}" = "" ]; then KERNEL=python3; fi From add4ac4236b1110bfef4b0986e751e4bad357372 Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Wed, 4 Sep 2024 11:49:00 +0200 Subject: [PATCH 5/7] expose kernel as optional input for 'build-notebooks/action.yml' --- build-notebooks/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-notebooks/action.yml b/build-notebooks/action.yml index a62a0c15..4ceb5e4b 100644 --- a/build-notebooks/action.yml +++ b/build-notebooks/action.yml @@ -20,6 +20,10 @@ inputs: exclusion-file: description: 'An optional path to a file containing the names of notebooks to NOT build' required: false + kernel: + description: 'Name of the kernel to be used by papermill during headless execution' + default: python3 + required: false runs: using: 'composite' @@ -31,4 +35,4 @@ runs: - uses: pyiron/actions/pyiron-config@v3.3.0 - name: Build notebooks shell: bash -l {0} - run: $GITHUB_ACTION_PATH/../.support/build_notebooks.sh ${{ inputs.notebooks-dir }} ${{ inputs.exclusion-file }} \ No newline at end of file + run: $GITHUB_ACTION_PATH/../.support/build_notebooks.sh ${{ inputs.notebooks-dir }} ${{ inputs.exclusion-file }} ${{ inputs.kernel }} From e5845c78c643ebf4196daf8ce7d7028239914261 Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Wed, 4 Sep 2024 12:23:02 +0200 Subject: [PATCH 6/7] expose kernel as optoinal input for '.github/workflows/push-pull.yml' --- .github/workflows/push-pull.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-pull.yml b/.github/workflows/push-pull.yml index 4300412c..e1c92a3e 100644 --- a/.github/workflows/push-pull.yml +++ b/.github/workflows/push-pull.yml @@ -170,6 +170,11 @@ on: description: 'The directory containing the tests run with the alternate environment' default: tests required: false + notebooks-kernel: + type: string + description: 'Name of the kernel to be used by papermill during headless execution' + default: python3 + required: false jobs: @@ -229,7 +234,7 @@ jobs: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.notebooks-env-files }} exclusion-file: ${{ inputs.notebooks-exclusion-file }} - + kernel: ${{ inputs.notebooks-kernel }} unit-tests: needs: commit-updated-env From 8e212604ccbac3193555756213ad350b31813127 Mon Sep 17 00:00:00 2001 From: mbruns91 Date: Wed, 4 Sep 2024 17:58:39 +0200 Subject: [PATCH 7/7] re-target main --- .github/workflows/dependabot-pr.yml | 2 +- .github/workflows/pr-labeled.yml | 4 ++-- .github/workflows/push-pull.yml | 22 +++++++++++----------- .github/workflows/pyproject-release.yml | 4 ++-- .github/workflows/tests-and-coverage.yml | 4 ++-- README.md | 2 +- build-docs/action.yml | 4 ++-- build-notebooks/action.yml | 4 ++-- cached-miniforge/action.yml | 2 +- pip-check/action.yml | 2 +- unit-tests/action.yml | 4 ++-- 11 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/dependabot-pr.yml b/.github/workflows/dependabot-pr.yml index b0218dce..bdd62e81 100644 --- a/.github/workflows/dependabot-pr.yml +++ b/.github/workflows/dependabot-pr.yml @@ -19,7 +19,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR fetch-depth: 0 # otherwise, you will fail to push refs to dest repo token: ${{ secrets.DEPENDABOT_WORKFLOW_TOKEN }} - - uses: pyiron/actions/update-env-files@v3.3.0 + - uses: pyiron/actions/update-env-files@main - name: UpdateDependabotPR commit run: | git config --local user.email "pyiron@mpie.de" diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 14fcad49..8b9cfe1c 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -43,10 +43,10 @@ jobs: tests-and-coverage: if: contains(github.event.pull_request.labels.*.name, 'run_coverage') - uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@v3.3.0 + uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@main secrets: inherit code-ql: if: contains(github.event.pull_request.labels.*.name, 'run_CodeQL') - uses: pyiron/actions/.github/workflows/codeql.yml@v3.3.0 + uses: pyiron/actions/.github/workflows/codeql.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/push-pull.yml b/.github/workflows/push-pull.yml index e1c92a3e..c4a30143 100644 --- a/.github/workflows/push-pull.yml +++ b/.github/workflows/push-pull.yml @@ -187,11 +187,11 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} # Check out the head of the actual branch, not the PR fetch-depth: 0 # otherwise, you will fail to push refs to dest repo if: ${{ inputs.do-commit-updated-env }} - - uses: pyiron/actions/write-docs-env@v3.3.0 + - uses: pyiron/actions/write-docs-env@main with: env-files: ${{ inputs.docs-env-files }} if: ${{ inputs.do-commit-updated-env }} - - uses: pyiron/actions/write-environment@v3.3.0 + - uses: pyiron/actions/write-environment@main with: env-files: ${{ inputs.notebooks-env-files }} output-env-file: .binder/environment.yml @@ -218,7 +218,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/build-docs@v3.3.0 + - uses: pyiron/actions/build-docs@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.docs-env-files }} @@ -229,7 +229,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/build-notebooks@v3.3.0 + - uses: pyiron/actions/build-notebooks@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.notebooks-env-files }} @@ -266,11 +266,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@v3.3.0 + - uses: pyiron/actions/add-to-python-path@main if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@v3.3.0 + - uses: pyiron/actions/unit-tests@main with: python-version: ${{ matrix.python-version }} env-files: ${{ inputs.tests-env-files }} @@ -281,7 +281,7 @@ jobs: coveralls-and-codacy: needs: commit-updated-env if: ${{ inputs.do-coveralls || inputs.do-codacy }} - uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@v3.3.0 + uses: pyiron/actions/.github/workflows/tests-and-coverage.yml@main secrets: inherit with: tests-env-files: ${{ inputs.tests-env-files }} @@ -300,7 +300,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/unit-tests@v3.3.0 + - uses: pyiron/actions/unit-tests@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.tests-env-files }} @@ -313,11 +313,11 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@v3.3.0 + - uses: pyiron/actions/add-to-python-path@main if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@v3.3.0 + - uses: pyiron/actions/unit-tests@main with: python-version: ${{ inputs.alternate-tests-python-version }} env-files: ${{ inputs.alternate-tests-env-files }} @@ -331,7 +331,7 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/pip-check@v3.3.0 + - uses: pyiron/actions/pip-check@main with: python-version: ${{ inputs.python-version }} diff --git a/.github/workflows/pyproject-release.yml b/.github/workflows/pyproject-release.yml index 0c7d9608..905c54b7 100644 --- a/.github/workflows/pyproject-release.yml +++ b/.github/workflows/pyproject-release.yml @@ -79,11 +79,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/cached-miniforge@v3.3.0 + - uses: pyiron/actions/cached-miniforge@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.env-files }} - - uses: pyiron/actions/update-pyproject-dependencies@v3.3.0 + - uses: pyiron/actions/update-pyproject-dependencies@main with: input-toml: ${{ inputs.input-toml }} lower-bound-yaml: ${{ inputs.lower-bound-yaml }} diff --git a/.github/workflows/tests-and-coverage.yml b/.github/workflows/tests-and-coverage.yml index cc70505c..971f267a 100644 --- a/.github/workflows/tests-and-coverage.yml +++ b/.github/workflows/tests-and-coverage.yml @@ -64,11 +64,11 @@ jobs: runs-on: ${{ inputs.runner }} steps: - uses: actions/checkout@v4 - - uses: pyiron/actions/add-to-python-path@v3.3.0 + - uses: pyiron/actions/add-to-python-path@main if: inputs.extra-python-paths != '' with: path-dirs: ${{ inputs.extra-python-paths }} - - uses: pyiron/actions/unit-tests@v3.3.0 + - uses: pyiron/actions/unit-tests@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.tests-env-files }} diff --git a/README.md b/README.md index d8897942..2f84c311 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ on: jobs: pyiron: - uses: pyiron/actions/.github/workflows/push-pull.yml@v3.3.0 + uses: pyiron/actions/.github/workflows/push-pull.yml@main secrets: inherit ``` diff --git a/build-docs/action.yml b/build-docs/action.yml index b9d854fa..0339b7cc 100644 --- a/build-docs/action.yml +++ b/build-docs/action.yml @@ -21,11 +21,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@v3.3.0 + - uses: pyiron/actions/cached-miniforge@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-docs-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@v3.3.0 + - uses: pyiron/actions/pyiron-config@main - name: Build sphinx documentation shell: bash -l {0} run: | diff --git a/build-notebooks/action.yml b/build-notebooks/action.yml index 4ceb5e4b..ae45028a 100644 --- a/build-notebooks/action.yml +++ b/build-notebooks/action.yml @@ -28,11 +28,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@v3.3.0 + - uses: pyiron/actions/cached-miniforge@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-notebooks-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@v3.3.0 + - uses: pyiron/actions/pyiron-config@main - name: Build notebooks shell: bash -l {0} run: $GITHUB_ACTION_PATH/../.support/build_notebooks.sh ${{ inputs.notebooks-dir }} ${{ inputs.exclusion-file }} ${{ inputs.kernel }} diff --git a/cached-miniforge/action.yml b/cached-miniforge/action.yml index e5261ae7..f333c4df 100644 --- a/cached-miniforge/action.yml +++ b/cached-miniforge/action.yml @@ -71,7 +71,7 @@ inputs: runs: using: "composite" steps: - - uses: pyiron/actions/write-environment@v3.3.0 + - uses: pyiron/actions/write-environment@main with: env-files: ${{ inputs.env-files }} - name: Env name backwards compatibility patch diff --git a/pip-check/action.yml b/pip-check/action.yml index c464e1cd..b94825bd 100644 --- a/pip-check/action.yml +++ b/pip-check/action.yml @@ -13,7 +13,7 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@v3.3.0 + - uses: pyiron/actions/cached-miniforge@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.env-files }} diff --git a/unit-tests/action.yml b/unit-tests/action.yml index 8cf4b32e..e3dd9761 100644 --- a/unit-tests/action.yml +++ b/unit-tests/action.yml @@ -35,11 +35,11 @@ inputs: runs: using: 'composite' steps: - - uses: pyiron/actions/cached-miniforge@v3.3.0 + - uses: pyiron/actions/cached-miniforge@main with: python-version: ${{ inputs.python-version }} env-files: ${{ inputs.standard-unittests-env-file }} ${{ inputs.coveralls-codacy-env-file }} ${{ inputs.env-files }} - - uses: pyiron/actions/pyiron-config@v3.3.0 + - uses: pyiron/actions/pyiron-config@main - name: Test shell: bash -l {0} run: |