From 6e15071ea971761582f795de2408b6df4cf7100b Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Tue, 14 Jan 2025 12:44:43 +0100 Subject: [PATCH] ci: pin ubuntu OS to 22.04. (#3659) * ci: ping ubuntu OS to 22.04. * chore: adding changelog file 3659.maintenance.md [dependabot-skip] * chore: adding changelog file 3659.maintenance.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- .github/workflows/ci.yml | 32 ++++++++++++++--------------- .github/workflows/linkchecker.yml | 2 +- doc/changelog.d/3659.maintenance.md | 1 + 3 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 doc/changelog.d/3659.maintenance.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f5c9b0d5f..de7f80d324 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: update-changelog: name: "Update CHANGELOG (on release)" if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write pull-requests: write @@ -82,7 +82,7 @@ jobs: pull-request-name: if: github.event_name == 'pull_request' name: Check the name of the pull-request - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Check pull-request name uses: ansys/actions/check-pr-title@v8 @@ -92,7 +92,7 @@ jobs: doc-style: name: "Documentation style ${{ matrix.folder }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: folder: ["doc", "examples"] @@ -142,7 +142,7 @@ jobs: check-vulnerabilities: name: "Check library vulnerabilities" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: ansys/actions/check-vulnerabilities@v8 with: @@ -156,7 +156,7 @@ jobs: docs-build: name: "Build documentation" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: doc-style timeout-minutes: 60 outputs: @@ -359,7 +359,7 @@ jobs: build-test-remote-matrix: name: "Build remote test matrix" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} @@ -400,7 +400,7 @@ jobs: build-test-remote: name: "Remote: ${{ matrix.mapdl-version }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [smoke-tests, build-test-remote-matrix] timeout-minutes: 35 strategy: @@ -599,7 +599,7 @@ jobs: build-test-local-minimal-matrix: name: "Build test matrix for minimal and local" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} @@ -630,7 +630,7 @@ jobs: build-test-ubuntu-local: name: "Local: ${{ matrix.mapdl-version }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' needs: [smoke-tests, build-test-local-minimal-matrix] timeout-minutes: 75 @@ -785,7 +785,7 @@ jobs: build-test-ubuntu-minimal: name: "Local-min: ${{ matrix.mapdl-version }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' needs: [smoke-tests, build-test-local-minimal-matrix] timeout-minutes: 75 @@ -913,7 +913,7 @@ jobs: build-test-ubuntu-console: name: "Local-min-console: ${{ matrix.mapdl-version }}" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' needs: [smoke-tests, build-test-local-minimal-matrix] timeout-minutes: 75 @@ -1115,7 +1115,7 @@ jobs: package: name: "Package library" needs: [build-test-remote, build-test-ubuntu-local, build-test-ubuntu-minimal, docs-build] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Build library source and wheel artifacts" uses: ansys/actions/build-library@v8 @@ -1128,7 +1128,7 @@ jobs: name: "Release project" if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} needs: [package, update-changelog] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # Specifying a GitHub environment is optional, but strongly encouraged environment: release permissions: @@ -1154,7 +1154,7 @@ jobs: upload-docs-release: name: "Upload release documentation" if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [release] steps: - name: "Deploy the stable documentation" @@ -1170,7 +1170,7 @@ jobs: upload-dev-docs: name: "Upload dev documentation" if: github.ref == 'refs/heads/main' && !contains(github.ref, 'refs/tags') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [docs-build] steps: - name: "Deploy the latest documentation" @@ -1186,7 +1186,7 @@ jobs: name: "Notify failed build" needs: [smoke-tests, docs-build, build-test-remote, build-test-ubuntu-local, build-test-ubuntu-minimal] if: failure() && github.event_name == 'schedule' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: "Open issue" uses: jayqi/failed-build-issue-action@v1 diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml index bbe761fd11..aaa85a39dd 100644 --- a/.github/workflows/linkchecker.yml +++ b/.github/workflows/linkchecker.yml @@ -21,7 +21,7 @@ env: jobs: linkchecker: name: Check Links - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 60 env: PYMAPDL_PORT: 21000 # default won't work on GitHub runners diff --git a/doc/changelog.d/3659.maintenance.md b/doc/changelog.d/3659.maintenance.md new file mode 100644 index 0000000000..8b90b0eaaa --- /dev/null +++ b/doc/changelog.d/3659.maintenance.md @@ -0,0 +1 @@ +ci: pin ubuntu OS to 22.04. \ No newline at end of file