Skip to content

Commit 39bad9c

Browse files
Merge pull request #177 from developmentseed/patch/update-ci
update workflows
2 parents baeb577 + 213616f commit 39bad9c

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

.github/dependabot.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"
11+
groups:
12+
all:
13+
patterns:
14+
- "*"

.github/workflows/ci.yml

+13-23
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,24 @@ on:
1717
- '.github/workflows/ci.yml'
1818
pull_request:
1919
env:
20-
LATEST_PY_VERSION: '3.10'
20+
LATEST_PY_VERSION: '3.12'
2121

2222
jobs:
2323
tests:
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
python-version: ['3.8', '3.9', '3.10', '3.11']
27+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2828

2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v4
32+
uses: actions/setup-python@v5
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

3636
- name: install lib postgres
37-
run: |
38-
sudo apt update
39-
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add -
40-
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list
41-
sudo apt update
42-
sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3
37+
uses: nyurik/action-setup-postgis@v1
4338

4439
- name: Install dependencies
4540
run: |
@@ -66,21 +61,16 @@ jobs:
6661

6762
benchmark:
6863
needs: [tests]
69-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-latest
7065
steps:
71-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
7267
- name: Set up Python
73-
uses: actions/setup-python@v4
68+
uses: actions/setup-python@v5
7469
with:
7570
python-version: ${{ env.LATEST_PY_VERSION }}
7671

7772
- name: install lib postgres
78-
run: |
79-
sudo apt update
80-
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add -
81-
echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list
82-
sudo apt update
83-
sudo apt-get install --yes libpq-dev postgis postgresql-14-postgis-3
73+
uses: nyurik/action-setup-postgis@v1
8474

8575
- name: Install dependencies
8676
run: |
@@ -110,9 +100,9 @@ jobs:
110100
runs-on: ubuntu-latest
111101
if: contains(github.ref, 'tags') && github.event_name == 'push'
112102
steps:
113-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
114104
- name: Set up Python
115-
uses: actions/setup-python@v4
105+
uses: actions/setup-python@v5
116106
with:
117107
python-version: ${{ env.LATEST_PY_VERSION }}
118108

@@ -152,7 +142,7 @@ jobs:
152142

153143
steps:
154144
- name: Checkout
155-
uses: actions/checkout@v3
145+
uses: actions/checkout@v4
156146

157147
- name: Set up QEMU
158148
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)