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

Merged
merged 15 commits into from
Jul 10, 2025
Merged
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
3 changes: 2 additions & 1 deletion .devcontainer/codespaces-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ENV ON_CI=true

# Installing libs for testing and docs
RUN apt-get -qq update && apt install -qq -y
libgl1-mesa-glx \
libgl1 \
libglx-mesa0 \
libgomp1 \
python3-pip \
python3.11-venv \
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/codespaces-docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ ENV ON_CI=true
# Installing libs for testing and docs
RUN apt-get -qq update && apt install -qq -y \
graphviz \
libgl1 \
libglx-mesa0 \
latexmk \
libgl1-mesa-glx \
pandoc \
python3-pip \
python3.11-venv \
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer-local/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ENV ON_CI=true
RUN apt-get -qq update && apt-get install -qq -y \
graphviz \
latexmk \
libgl1-mesa-glx \
libgl1 \
libglx-mesa0 \
libgomp1 \
pandoc \
python3-pip \
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/[email protected]
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 @@ -126,7 +126,7 @@ jobs:

check-vulnerabilities:
name: "Check library vulnerabilities"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/[email protected]
with:
Expand All @@ -150,7 +150,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 @@ -187,7 +187,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 @@ -296,7 +296,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/[email protected]
Expand All @@ -309,7 +309,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 @@ -344,7 +344,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 @@ -360,7 +360,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 @@ -376,7 +376,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 @@ -411,7 +411,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 @@ -65,7 +65,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 @@ -145,7 +145,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
2 changes: 1 addition & 1 deletion .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: "Notify failed build"
needs: [linkcheck]
if: failure() && github.event_name == 'schedule'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: "Open issue"
uses: jayqi/[email protected]
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 @@ -182,7 +182,7 @@ jobs:
shell: bash
if: inputs.testing-minimal == false
run: |
apt-get update && apt install -y libgl1-mesa-glx xvfb libgomp1 graphviz curl && apt-get clean
apt-get update && apt install -y libgl1 libglx-mesa0 xvfb libgomp1 graphviz curl && apt-get clean

- name: "Setup Python"
uses: actions/setup-python@v5
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 @@ -49,7 +49,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 @@ -200,7 +200,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.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ci: use ubuntu-latest github image
Loading