Skip to content

ci: use ubuntu-latest github image #3814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/codespaces-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ENV CODESPACES_MODE=dev

# Installing libs for testing and docs
RUN apt-get -qq update && apt install -qq -y
libgl1 \
libgl1-mesa-glx \
libgomp1 \
python3-pip \
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/codespaces-docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV CODESPACES_MODE=docs
# Installing libs for testing and docs
RUN apt-get -qq update && apt install -qq -y \
graphviz \
libgl1 \
latexmk \
libgl1-mesa-glx \
pandoc \
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
update-changelog:
name: "Update CHANGELOG (on release)"
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
Expand All @@ -63,7 +63,7 @@ jobs:
pull-request-name:
if: github.event_name == 'pull_request'
name: Check the name of the pull-request
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Check pull-request name
uses: ansys/actions/check-pr-title@v9
Expand All @@ -73,7 +73,7 @@ jobs:

doc-style:
name: "Documentation style ${{ matrix.folder }}"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
folder: ["doc", "examples"]
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

check-vulnerabilities:
name: "Check library vulnerabilities"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-vulnerabilities@v9
with:
Expand All @@ -146,7 +146,7 @@ jobs:

build-test-remote-matrix:
name: "Build remote test matrix"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:

build-test-local-matrix:
name: "Build test matrix for minimal and local"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
package:
name: "Package library"
needs: [build-test-remote, build-test-ubuntu-local, build-test-ubuntu-minimal, docs-build]
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: "Build library source and wheel artifacts"
uses: ansys/actions/build-library@v9
Expand All @@ -302,7 +302,7 @@ jobs:
name: "Release project"
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
needs: [package, update-changelog]
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
upload-docs-release:
name: "Upload release documentation"
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [release]
steps:
- name: "Deploy the stable documentation"
Expand All @@ -353,7 +353,7 @@ jobs:
upload-dev-docs:
name: "Upload dev documentation"
if: github.ref == 'refs/heads/main' && !contains(github.ref, 'refs/tags')
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [docs-build]
steps:
- name: "Deploy the latest documentation"
Expand All @@ -369,7 +369,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-22.04
runs-on: ubuntu-latest
steps:
- name: "Open issue"
uses: jayqi/failed-build-issue-action@v1
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
build-test-remote, build-test-ubuntu-local, build-test-ubuntu-minimal, build-test-ubuntu-console
]
if: always()
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: "Install Git and checkout project"
uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

jobs:
doc-build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
ON_CI: True
ON_DOCUMENTATION: TRUE
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- name: "Install OS packages"
shell: bash
run: |
sudo apt update && sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz texlive-xetex texlive-fonts-extra qpdf xindy
sudo apt update && sudo apt install zip pandoc libgl1 libglx-mesa0 xvfb texlive-latex-extra latexmk graphviz texlive-xetex texlive-fonts-extra qpdf xindy

- name: "Test virtual framebuffer"
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
jobs:
linkchecker:
name: Check Links
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 60
env:
PYMAPDL_PORT: 21000 # default won't work on GitHub runners
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: "Install OS packages"
run: |
sudo apt update
sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz
sudo apt install zip pandoc libgl1 libglx-mesa0 xvfb texlive-latex-extra latexmk graphviz

- name: "Test virtual framebuffer"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ on:
Runner to use.
required: false
type: string
default: ubuntu-22.04
default: ubuntu-latest

secrets:
license-server:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:

jobs:
test-remote:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
ON_CI: True
ON_LOCAL: FALSE
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
shell: bash
run: |
sudo apt update
sudo apt install libgl1-mesa-glx xvfb graphviz
sudo apt install libgl1 libglx-mesa0 xvfb graphviz

- name: "Test virtual framebuffer"
shell: bash
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3814.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: use ubuntu-latest github image
Loading