diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 5e609700..b5b7aa17 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -3,6 +3,11 @@ name: Building docs on: workflow_call: inputs: + actions-ref: + description: "Version of actions, normally the same as workflow" + required: false + type: string + default: "" python-version: description: "Python version to use" default: "3.9" @@ -71,6 +76,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} + cache: "pip" - name: Install pandoc & texlive if: ${{ inputs.install-tex == 'true' }} @@ -83,7 +89,6 @@ jobs: dvipng \ texlive-pictures \ latexmk - # todo: consider adding cache with separate restore/save - name: Install dependencies timeout-minutes: 20 run: | @@ -91,8 +96,15 @@ jobs: pip install -e . -U -r ${{ inputs.requirements-file }} -f ${TORCH_URL} pip list - # TODO: re-enable after the external usage is resolved, see #51 - # - uses: ./.github/actions/pip-list + - name: Pull reusable 🤖 actions️ + if: ${{ inputs.actions-ref != '' }} + uses: actions/checkout@v4 + with: + ref: ${{ inputs.actions-ref }} + path: .cicd + repository: Lightning-AI/utilities + - uses: ./.cicd/.github/actions/pip-list + if: ${{ inputs.actions-ref != '' }} - name: Build documentation working-directory: ${{ inputs.docs-dir }} diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index 174204de..d97a241f 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -33,7 +33,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set oldest dependencies - # todo: this is strange to use itself :/ if: matrix.requires == 'oldest' timeout-minutes: 20 run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 399c6597..02b518db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - CLI: update parsing inputs ([#333](https://github.com/Lightning-AI/utilities/pull/333)) -- CI: bump upload/download artifact `v4` ([#344](https://github.com/Lightning-AI/utilities/pull/344)) +- CI: bump upload/download artifact `v4` ([#344](https://github.com/Lightning-AI/utilities/pull/344), [#345](https://github.com/Lightning-AI/utilities/pull/345)) - Bump minimal Python version to be 3.9 ([#331](https://github.com/Lightning-AI/utilities/pull/331))