Skip to content

Commit 42c31bd

Browse files
authored
Merge pull request #140 from PDOK/PDOK-17406-upgrade-github-actions
Bump actions/cache from v2 to v4
2 parents 8560cf9 + 7d14d83 commit 42c31bd

File tree

3 files changed

+5
-72
lines changed

3 files changed

+5
-72
lines changed

.github/workflows/build-and-publish-dockerhub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Docker Buildx
4343
uses: docker/setup-buildx-action@v1
4444
- name: Cache Docker layers
45-
uses: actions/cache@v2
45+
uses: actions/cache@v4
4646
with:
4747
path: /tmp/.buildx-cache
4848
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/pytest.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,11 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] # no ubuntugis @ ubuntu-24.04
12+
os: [ubuntu-24.04, ubuntu-22.04] # no ubuntugis @ ubuntu-24.04
1313
python-version: ['3.11', '3.10', '3.9', '3.8']
14-
gdal-version: ['3.8', '3.6', '3.4']
1514
exclude:
1615
- os: ubuntu-24.04
1716
python-version: '3.9'
18-
- os: ubuntu-24.04
19-
gdal-version: '3.6'
20-
- os: ubuntu-24.04
21-
gdal-version: '3.4'
22-
- os: ubuntu-22.04
23-
gdal-version: '3.4'
24-
- os: ubuntu-22.04
25-
gdal-version: '3.8'
26-
- os: ubuntu-20.04
27-
python-version: '3.11'
28-
- os: ubuntu-20.04
29-
gdal-version: '3.6'
30-
- os: ubuntu-20.04
31-
gdal-version: '3.8'
3217
steps:
3318
- name: Checkout 🛎️
3419
uses: actions/checkout@v3
@@ -39,22 +24,13 @@ jobs:
3924
- name: install gdal
4025
id: gdal
4126
run: |
42-
if [ "${{ matrix.os }}" = "ubuntu-20.04" ]
43-
then
44-
echo adding ubuntugis unstable
45-
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
46-
else
47-
echo adding ubuntugis stable
48-
sudo apt-add-repository ppa:ubuntugis/ppa
49-
fi
5027
sudo apt-get update || true # ignore erros becouse we can not install gdal from `ppa:ubuntugis/ppa` without apt errors
5128
echo available python3-gdal versions: $(apt-cache madison python3-gdal | cut -f2 -d "|" | tr -d " ")
5229
echo available libgdal-dev versions: $(apt-cache madison libgdal-dev | cut -f2 -d "|" | tr -d " ")
53-
export APT_GDAL_VERSION=$(apt-cache madison python3-gdal | grep ${{ matrix.gdal-version }} | head -n1 | cut -f2 -d "|" | tr -d " ")
30+
export APT_GDAL_VERSION=$(apt-cache madison python3-gdal | head -n1 | cut -f2 -d "|" | tr -d " ")
5431
echo "using version ->${APT_GDAL_VERSION}<-"
55-
apt-cache madison libgdal30 | grep "${APT_GDAL_VERSION}" && sudo apt-get install libgdal30="${APT_GDAL_VERSION}"
56-
sudo apt-get install python3-gdal="${APT_GDAL_VERSION}" libgdal-dev="${APT_GDAL_VERSION}"
5732
echo gdal_version=$(echo "${APT_GDAL_VERSION}" | cut -f1 -d '+') >> $GITHUB_OUTPUT
33+
sudo apt-get install python3-gdal libgdal-dev
5834
- name: Install dependencies for test
5935
run: |
6036
python -m pip install --upgrade pip wheel
@@ -63,7 +39,7 @@ jobs:
6339
- name: Install dependencies from config
6440
run: |
6541
# we need to pin GDAL here to match the python3-gdal
66-
pip install GDAL==${{steps.gdal.outputs.gdal_version}}
42+
pip3 install GDAL==${{steps.gdal.outputs.gdal_version}}
6743
pip3 install --no-cache-dir .[test]
6844
- name: Test with pytest
6945
run: |

CHANGES.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)