forked from PecanProject/pecan
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.02 KB
/
Copy pathintegration-test.yml
File metadata and controls
44 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name : Integration Tests
on :
# allow manual triggering
workflow_dispatch:
schedule:
# run Thursday 4:30 AM UTC
- cron: '30 4 * * 4'
jobs:
test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
PGHOST: postgres
services:
postgres:
image: mdillon/postgis:9.5
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
container:
image: pecan/base:develop
steps:
- name: Checkout source code
uses: actions/checkout@v4
# initialize database
- name: db setup
uses: docker://pecan/db:ci
- name: Run tests
run: |
for FILE in modules/data.atmosphere/inst/integrationTests/*; do
if echo "$FILE" | grep -q "ERA5"; then
echo "Skipping file : $FILE"
else
Rscript "$FILE"
fi
done
- name: Run modular pipeline integration test
run: Rscript modules/uncertainty/inst/integrationTests/test.modular.chain.R