Skip to content

Commit 0e39766

Browse files
author
Ariana Barzinpour
committed
update workflow
1 parent cf86fc0 commit 0e39766

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828

2929
- name: Setup Python
30-
uses: actions/setup-python@v1
30+
uses: actions/setup-python@v5
3131
with:
32-
python-version: 3.9
32+
python-version: 3.10
3333

34-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
3535
id: wheels_cache
3636
with:
3737
path: ./wheels
@@ -69,16 +69,16 @@ jobs:
6969
runs-on: ubuntu-latest
7070

7171
steps:
72-
- uses: actions/checkout@v2
72+
- uses: actions/checkout@v4
7373

74-
- uses: actions/cache@v3
74+
- uses: actions/cache@v4
7575
id: conda_cache
7676
with:
7777
path: |
7878
tests/env
7979
key: ${{ runner.os }}-test-env-${{ hashFiles('tests/test-env.yml') }}
8080

81-
- uses: conda-incubator/setup-miniconda@v2
81+
- uses: conda-incubator/setup-miniconda@v3
8282
if: steps.conda_cache.outputs.cache-hit != 'true'
8383
with:
8484
channels: conda-forge,defaults
@@ -119,10 +119,10 @@ jobs:
119119
- build-test-env-base
120120

121121
steps:
122-
- uses: actions/checkout@v2
122+
- uses: actions/checkout@v4
123123

124124
- name: Get Conda Environment from Cache
125-
uses: actions/cache@v3
125+
uses: actions/cache@v4
126126
id: conda_cache
127127
with:
128128
path: |
@@ -149,7 +149,7 @@ jobs:
149149
run: |
150150
echo "Launching test db"
151151
pgdata=$(pwd)/.dbdata
152-
/usr/lib/postgresql/16/bin/initdb -D ${pgdata} --auth-host=md5 --encoding=UTF8
152+
initdb -D ${pgdata} --auth-host=md5 --encoding=UTF8
153153
pg_ctl -D ${pgdata} -l "${pgdata}/pg.log" start
154154
createdb datacube
155155
datacube system init
@@ -180,7 +180,7 @@ jobs:
180180
if: |
181181
github.repository == 'opendatacube/odc-tools'
182182
183-
uses: codecov/codecov-action@v1
183+
uses: codecov/codecov-action@v5
184184
with:
185185
fail_ci_if_error: false
186186
verbose: false
@@ -194,17 +194,17 @@ jobs:
194194
- build-wheels
195195

196196
steps:
197-
- uses: actions/checkout@v2
197+
- uses: actions/checkout@v4
198198

199199
- name: Get Wheels from Cache
200-
uses: actions/cache@v3
200+
uses: actions/cache@v4
201201
id: wheels_cache
202202
with:
203203
path: ./wheels
204204
key: wheels-${{ github.sha }}
205205

206206
- name: Get Conda Environment from Cache
207-
uses: actions/cache@v3
207+
uses: actions/cache@v4
208208
id: conda_cache
209209
with:
210210
path: |
@@ -232,7 +232,7 @@ jobs:
232232
run: |
233233
echo "Launching test db"
234234
pgdata=$(pwd)/.dbdata
235-
/usr/lib/postgresql/16/bin/initdb -D ${pgdata} --auth-host=md5 --encoding=UTF8
235+
initdb -D ${pgdata} --auth-host=md5 --encoding=UTF8
236236
pg_ctl -D ${pgdata} -l "${pgdata}/pg.log" start
237237
createdb datacube
238238
datacube system init
@@ -276,7 +276,7 @@ jobs:
276276
runs-on: ubuntu-latest
277277

278278
steps:
279-
- uses: actions/checkout@v2
279+
- uses: actions/checkout@v4
280280

281281
- name: Config
282282
if: |
@@ -295,7 +295,7 @@ jobs:
295295
if: steps.cfg.outputs.publish == 'yes'
296296
uses: actions/setup-python@v1
297297
with:
298-
python-version: 3.8
298+
python-version: 3.10
299299

300300
- name: Install Twine
301301
if: steps.cfg.outputs.publish == 'yes'

0 commit comments

Comments
 (0)