Skip to content

Commit

Permalink
CI: update 2 configurations to Ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 14, 2025
1 parent db5db50 commit bfd01f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
run: python3 ./scripts/check_binaries.py

linting:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
Expand All @@ -135,16 +135,16 @@ jobs:
make doxygen_check_warnings
other_checks:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Install Requirements
run: |
sudo apt install python3-pip wget
# ruamel.yaml.clib 0.2.9 throws a 'TypeError: a string or stream input is required' when running cffconvert --validate
sudo pip3 install cffconvert "ruamel.yaml.clib<0.2.9"
sudo apt-get install -y --no-install-recommends python3-pip
sudo apt-get remove -y python3-jsonschema
PYTHON_CMD=python3 && sudo $PYTHON_CMD -m pip install --break-system-packages cffconvert
- name: Validate citation file
run: |
Expand Down
2 changes: 1 addition & 1 deletion autotest/gcore/vsiaz.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def test_vsiaz_fake_readdir_protection_again_infinite_looping():
<EnumerationResults>
<Prefix>a_dir with_space/</Prefix>
<Blobs/>
<NextMarker>bla{i+1}</NextMarker>
<NextMarker>bla{i + 1}</NextMarker>
</EnumerationResults>
""",
)
Expand Down
2 changes: 1 addition & 1 deletion autotest/pymod/ogrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def check_feature_geometry(

assert actual_pt == pytest.approx(
expected_pt, abs=max_error
), f"Error in vertex {i+1}/{count} exceeds tolerance. {context_msg}\n Expected: {_root_expected.ExportToWkt()}\n Actual: {_root_actual.ExportToWkt()}"
), f"Error in vertex {i + 1}/{count} exceeds tolerance. {context_msg}\n Expected: {_root_expected.ExportToWkt()}\n Actual: {_root_actual.ExportToWkt()}"


###############################################################################
Expand Down
5 changes: 3 additions & 2 deletions swig/python/gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def __init__(
else:
if formatter_class is None:
formatter_class = argparse.RawDescriptionHelpFormatter
description = f'{title}\n{"-"*(2+len(title))}\n{description}'
number_dashes = 2 + len(title)
description = f'{title}\n{"-" * number_dashes}\n{description}'

if formatter_class is None:
formatter_class = argparse.HelpFormatter
Expand Down Expand Up @@ -227,7 +228,7 @@ def get_epilog(self):
prog = os.path.basename(sys.argv[0])
example_list = []
for idx, (title, args) in enumerate(self.examples):
example_list.append(f"example #{idx+1}: {title}\n{prog} {args}")
example_list.append(f"example #{idx + 1}: {title}\n{prog} {args}")
epilog = "\n\n".join(example_list)
if self.epilog:
epilog = epilog + "\n\n" + self.epilog
Expand Down

0 comments on commit bfd01f5

Please sign in to comment.