Skip to content

Commit

Permalink
Bump workflows to use Ubuntu 24.04 (#1478)
Browse files Browse the repository at this point in the history
* Bump workflows to use Ubuntu 24.04

* Continue using 20.04 for python 3.6

* Continue using 20.04 for python 3.6 and 3.7

* Indentation fix
  • Loading branch information
abhinavsingh authored Sep 21, 2024
1 parent f5f18e4 commit c07436c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerfile-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
pre-setup:
name: ⚙️ Pre-set global build settings
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
Expand All @@ -31,7 +31,7 @@ jobs:
echo "::set-output name=platforms::$PLATFORMS"
ghcr-base:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
packages: write
if: success()
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/test-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ concurrency:
jobs:
pre-setup:
name: ⚙️ Pre-set global build settings
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
defaults:
run:
shell: python
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
needs:
- pre-setup # transitive, for accessing settings

runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

env:
PY_COLORS: 1
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:
- build
- pre-setup # transitive, for accessing settings

runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
toxenv:
Expand Down Expand Up @@ -440,19 +440,19 @@ jobs:
matrix:
os:
- macOS-12
- Ubuntu-20.04
- Ubuntu-24.04
- Windows-latest
python:
# NOTE: The latest and the lowest supported Pythons are prioritized
# NOTE: to improve the responsiveness. It's nice to see the most
# NOTE: important results first.
- '3.12'
- 3.6
- '3.11'
- '3.10'
- 3.9
- 3.8
- 3.7
include:
- os: Ubuntu-20.04
python: 3.6
- os: Ubuntu-20.04
python: 3.7

continue-on-error: >-
${{
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
packages: write
if: success()
Expand Down Expand Up @@ -614,7 +614,7 @@ jobs:
./tests/integration/test_integration.sh 8899
analyze:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: 🛡️ Analyze
# schedule:
# - cron: '0 14 * * 1'
Expand Down Expand Up @@ -696,7 +696,7 @@ jobs:
name: 📊 Node ${{ matrix.node }} @ ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macOS-12]
os: [ubuntu-24.04, windows-latest, macOS-12]
node: ['10.x', '11.x', '12.x']
# max-parallel: 4
fail-fast: false
Expand Down Expand Up @@ -727,7 +727,7 @@ jobs:
name: 🧑‍💻 👩‍💻 👨‍💻 Developer setup ${{ matrix.node }} @ ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-latest]
os: [ubuntu-24.04, macOS-latest]
python: ['3.10']
fail-fast: false
steps:
Expand All @@ -751,7 +751,7 @@ jobs:
python3 -m proxy --version
ghcr-latest:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
packages: write
if: success()
Expand Down Expand Up @@ -833,7 +833,7 @@ jobs:
-t $LATEST_TAG .
ghcr-openssl:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
packages: write
if: success()
Expand Down Expand Up @@ -913,7 +913,7 @@ jobs:
-t $LATEST_TAG .
docker-latest:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
permissions:
packages: write
if: success()
Expand Down Expand Up @@ -984,7 +984,7 @@ jobs:
- ghcr-openssl
- docker-latest

runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- name: Decide whether the needed jobs succeeded or failed
Expand All @@ -999,7 +999,7 @@ jobs:
- pre-setup # transitive, for accessing settings
if: >-
fromJSON(needs.pre-setup.outputs.release-requested)
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

environment:
name: release
Expand Down Expand Up @@ -1028,7 +1028,7 @@ jobs:
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
|| fromJSON(needs.pre-setup.outputs.release-requested)
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

environment:
name: release-testpypi
Expand Down Expand Up @@ -1057,7 +1057,7 @@ jobs:
needs:
- publish-pypi
- pre-setup # transitive, for accessing settings
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- name: Fetch the src snapshot
Expand Down Expand Up @@ -1090,7 +1090,7 @@ jobs:
needs:
- post-release-repo-update
- pre-setup # transitive, for accessing settings
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ submodules:
recursive: true

build:
os: ubuntu-20.04
os: ubuntu-24.04
tools:
python: >- # PyYAML parses it as float `3.1` it it's not an explicit string
3.10
Expand Down

0 comments on commit c07436c

Please sign in to comment.