Skip to content

Commit

Permalink
CI: Set runners to ubuntu-24.04 (#6696)
Browse files Browse the repository at this point in the history
* CI: Set runners to ubuntu-24.04 instead of ubuntu-latest
* Pin nightly job on ubuntu 22.04
  • Loading branch information
danielhollas authored Jan 15, 2025
1 parent 199a027 commit b432611
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

tests:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 45

strategy:
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:

tests-presto:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 20

steps:
Expand All @@ -118,7 +118,7 @@ jobs:

verdi:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 10

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
build-and-test:
if: ${{ github.event.pull_request.head.repo.fork }}
name: build and test amd64 images
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 60
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

docs-linkcheck:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30

steps:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
nightly-tests:

if: github.repository == 'aiidateam/aiida-core' # Prevent running the builds on forks as well
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

services:
postgres:
Expand Down Expand Up @@ -70,12 +70,11 @@ jobs:
from-lock: 'true'

- name: Setup environment
# NOTE: virtual env in .venv created by uv in previous step
run: source .venv/bin/activate && .github/workflows/setup.sh
run: .github/workflows/setup.sh

- name: Run tests
id: tests
run: source .venv/bin/activate && .github/workflows/tests_nightly.sh
run: .github/workflows/tests_nightly.sh

- name: Slack notification
# Always run this step (otherwise it would be skipped if any of the previous steps fail) but only if the
Expand All @@ -95,7 +94,7 @@ jobs:
# Run a subset of test suite to ensure compatibility with latest RabbitMQ releases
rabbitmq-tests:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 10

strategy:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

# Only run this job on the main repository and not on forks
if: github.repository == 'aiidateam/aiida-core'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -31,7 +31,7 @@ jobs:
pre-commit:

needs: [check-release-tag]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30

steps:
Expand All @@ -50,7 +50,7 @@ jobs:
tests:

needs: [check-release-tag]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30

services:
Expand All @@ -75,7 +75,7 @@ jobs:

needs: [check-release-tag, pre-commit, tests]

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout source
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Note: The specification is also validated by the pre-commit hook.

if: github.repository == 'aiidateam/aiida-core'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

needs: [validate-dependency-specification]
if: github.repository == 'aiidateam/aiida-core'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
Expand All @@ -76,7 +76,7 @@ jobs:
install-with-pip:

if: github.repository == 'aiidateam/aiida-core'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 15

strategy:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
# Verify that we can install AiiDA with conda.

if: github.repository == 'aiidateam/aiida-core'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 25

strategy:
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
tests:

needs: [install-with-pip]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 45

strategy:
Expand Down

0 comments on commit b432611

Please sign in to comment.