Skip to content

Commit

Permalink
Merge pull request nest#2841 from nicolossus/update_ubuntu_runner_ver…
Browse files Browse the repository at this point in the history
…sion

Bump Ubuntu and Python versions for GitHub Actions workflows
  • Loading branch information
heplesser authored Jun 20, 2024
2 parents 36f1515 + e5c72e7 commit 358c7cc
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 64 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/nestbuildmatrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on: [push, pull_request]

jobs:
clang-format:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
env:
CLANG_REQUIRE_VERSION: 17.0.4
CLANG_FORMAT_FILE: ".clang-format"
Expand All @@ -34,7 +34,7 @@ jobs:
diff -u <(cat ${files}) <(clang-format ${files})
cppcheck:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -57,7 +57,7 @@ jobs:
cppcheck --enable=all --language=c++ --std=c++17 -i sli/ --suppressions-list=.cppcheck_suppressions ./
rstcheck:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -73,7 +73,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -84,7 +84,7 @@ jobs:
rstcheck -r doc/
vale:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -100,7 +100,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -116,7 +116,7 @@ jobs:
./vale doc
copyright_headers:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -132,7 +132,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -143,7 +143,7 @@ jobs:
python build_support/check_copyright_headers.py
unused_names:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -159,14 +159,14 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Check for unused nest::names..."
run: |
python build_support/check_unused_names.py
forbidden_types:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -184,7 +184,7 @@ jobs:
./build_support/check_forbidden_types.sh
lychee_IGNORED:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -211,7 +211,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pydocstyle:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -227,7 +227,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -238,7 +238,7 @@ jobs:
pydocstyle pynest/
mypy:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -254,7 +254,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -265,7 +265,7 @@ jobs:
mypy pynest/
# pytest-linux:
# runs-on: "ubuntu-20.04"
# runs-on: "ubuntu-22.04"
# needs: [build_linux]
# env:
# NEST_VPATH: "build"
Expand All @@ -274,7 +274,7 @@ jobs:
# strategy:
# fail-fast: true
# matrix:
# os: ["ubuntu-20.04"]
# os: ["ubuntu-22.04"]
# cpp_compiler: ["gcc"]

# # available use flags (all default to "OFF"):
Expand All @@ -293,7 +293,7 @@ jobs:
# - name: "Set up Python 3.x"
# uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
# with:
# python-version: 3.9
# python-version: "3.10"

# - name: "Install dependencies"
# run: |
Expand All @@ -320,7 +320,7 @@ jobs:
# - name: "Set up Python 3.x"
# uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
# with:
# python-version: 3.9
# python-version: "3.10"

# - name: "Install dependencies"
# run: |
Expand All @@ -331,7 +331,7 @@ jobs:
# pytest pynest/

pylint:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -347,7 +347,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -371,7 +371,7 @@ jobs:
configuration: --profile=black --thirdparty="nest" --check-only --diff

black:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -390,7 +390,7 @@ jobs:
jupyter: true

flake8:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
Expand All @@ -406,7 +406,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -418,7 +418,7 @@ jobs:
sphinx-rtd:
# as close as possible to the Readthedocs setup (system install cmake, pip install -r doc/requirements.txt)
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs: [pydocstyle, rstcheck, vale]
steps:
- name: Harden Runner
Expand All @@ -437,7 +437,7 @@ jobs:
with:
# Using 3.8 because Read the docs does not work with higher versions.
# See also: https://github.com/nest/nest-simulator/pull/2744
python-version: 3.8
python-version: "3.10"

- name: "Install dependencies"
run: |
Expand All @@ -463,7 +463,7 @@ jobs:
sphinx-conda:
# as close as possible to the suggested user docs build in the documentation
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
if: false
needs: [pydocstyle, rstcheck, vale]
steps:
Expand All @@ -482,7 +482,7 @@ jobs:
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3
with:
auto-update-conda: true
python-version: "3.7"
python-version: "3.10"

- name: Install conda dependencies
shell: bash -l {0}
Expand Down Expand Up @@ -518,7 +518,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04"]
os: ["ubuntu-22.04"]
cpp_compiler: ["gcc"]

# available use flags (all default to "OFF"):
Expand All @@ -544,7 +544,7 @@ jobs:
- name: "Set up Python 3.x"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 3.9
python-version: "3.10"

- name: "Restore apt cache"
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand Down
60 changes: 28 additions & 32 deletions doc/htmldoc/_ext/versions.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
{
"python":
{
"min": 3.8
"python": {
"min": "3.10"
},
"pip":
{
"pip": {
"min": "20.3.3"
},
"cmake":
{
"min": 3.12,
"max": 3.16
"cmake": {
"min": "3.12"
},
"cython":
{
"cython": {
"min": "0.28.3"
},
"openmpi":
{
"openmpi": {
"min": "4.0.3"
},
"boost": {
"min": 1.69
"min": "1.69"
},
"gsl": {
"min": 1.11
"min": "1.11"
},
"libtool":
{
"libtool": {
"min": "2.4.6"
},
"readline":
{
"min": 8.0
"readline": {
"min": "8.0"
},
"numpy":
{
"hdf5": {
"min": "1.12"
},
"numpy": {
"min": "1.19.4"
},
"scipy":
{
"scipy": {
"min": "1.5.4"
},
"matplotlib":
{
"min": 3.0
"matplotlib": {
"min": "3.0"
},
"pandas": {
"min": "2.0"
},
"h5py": {
"min": "3.9"
},
"ipython":
{
"ipython": {
"min": "5.8.0"
},
"libncurses":
{
"min": 6.2
"libncurses": {
"min": "6.2"
}
}
2 changes: 1 addition & 1 deletion doc/htmldoc/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ This error message means something in your environment is not set correctly, dep

1. Check which Python version you are running

You must use **Python 3.8** or newer if you installed NEST with
You must use Python :version:`python` or newer if you installed NEST with

a. the Ubuntu PPA,
b. the conda-forge package,
Expand Down

0 comments on commit 358c7cc

Please sign in to comment.