Skip to content

Commit e569387

Browse files
authored
Use ubuntu-latest runner where possible (#2921)
This PR updates existing GitHub workflows to switch to use `ubuntu-latest` runner instead of `ubuntu-22.04` one where it's possible. Note, `cron-run-tests.yaml` still assumes to run tests on both `ubuntu-22.04` and `ubuntu-24.04` to validate both deployment paths. And `conda-package.yml` still builds on `ubuntu-22.04` to support running tests on any Ubuntu since 22.04.
1 parent 6ceefc5 commit e569387

4 files changed

Lines changed: 8 additions & 19 deletions

File tree

‎.github/workflows/build-sphinx.yml‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
build-and-deploy:
2525
name: Build and Deploy Docs
2626

27-
runs-on: ubuntu-22.04
27+
runs-on: ubuntu-latest
2828
timeout-minutes: 90
2929

3030
permissions:
@@ -70,13 +70,6 @@ jobs:
7070
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
7171
sudo apt update
7272
73-
- name: Update libstdc++-dev
74-
run: |
75-
sudo apt remove -y gcc-7 g++-7 gcc-8 g++-8 gcc-10 g++-10
76-
sudo apt remove -y libstdc++-10-dev
77-
sudo apt autoremove
78-
sudo apt install --reinstall -y gcc-9 g++-9 libstdc++-9-dev
79-
8073
- name: Install Intel OneAPI
8174
if: env.oneapi-pkgs-env == ''
8275
run: |
@@ -97,7 +90,7 @@ jobs:
9790
run: |
9891
sudo add-apt-repository ppa:graphics-drivers/ppa
9992
sudo apt-get update
100-
sudo apt-get install -y libnvidia-gl-450
93+
sudo apt-get install -y libnvidia-gl-550
10194
sudo apt-get install -y nvidia-cuda-toolkit clinfo
10295
10396
- name: Checkout repo

‎.github/workflows/check-onemath.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
fail-fast: false
7272
matrix:
7373
python: ['3.13'] # no dpctl package on PyPI with enabled python 3.14 support
74-
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
74+
os: [ubuntu-latest] # windows-2022 - no DFT support for Windows in oneMKL
7575

7676
runs-on: ${{ matrix.os }}
7777
timeout-minutes: 120
@@ -188,7 +188,7 @@ jobs:
188188
fail-fast: false
189189
matrix:
190190
python: ['3.13'] # no dpctl package on PyPI with enabled python 3.14 support
191-
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
191+
os: [ubuntu-latest] # windows-2022 - no DFT support for Windows in oneMKL
192192

193193
runs-on: ${{ matrix.os }}
194194
timeout-minutes: 60

‎.github/workflows/conda-package.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ jobs:
457457
fail-fast: false
458458
matrix:
459459
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
460-
os: [ubuntu-22.04, windows-2022]
460+
os: [ubuntu-latest, windows-2022]
461461

462462
runs-on: ${{ matrix.os }}
463463
timeout-minutes: 10
@@ -537,11 +537,7 @@ jobs:
537537
# Needed to add a comment to a pull request's issue
538538
pull-requests: write
539539

540-
strategy:
541-
matrix:
542-
os: [ubuntu-22.04]
543-
544-
runs-on: ${{ matrix.os }}
540+
runs-on: ubuntu-latest
545541
timeout-minutes: 15
546542

547543
defaults:
@@ -707,7 +703,7 @@ jobs:
707703

708704
needs: [upload]
709705

710-
runs-on: 'ubuntu-latest'
706+
runs-on: ubuntu-latest
711707
timeout-minutes: 10
712708

713709
defaults:

‎.github/workflows/pre-commit.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
pre-commit:
1212
name: Check
1313

14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-latest
1515
timeout-minutes: 10
1616

1717
steps:

0 commit comments

Comments
 (0)