-
Notifications
You must be signed in to change notification settings - Fork 239
47 lines (38 loc) · 1 KB
/
integration-test.yml
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
45
46
47
name : Integration Tests
on :
# allow manual triggering
workflow_dispatch:
# for debugging
push:
pull_request:
schedule:
# run Thursday 4:30 AM UTC
- cron: '30 4 * * 4'
jobs:
test:
runs-on: ubuntu-20.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
container:
image: pecan/base:develop
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: CDS API file setup
run: |
echo "url: https://cds.climate.copernicus.eu/api/v2" >> .cdsapirc
echo "key: ${{ secrets.ERA5_API_KEY }}" >> .cdsapirc
- name: Print Output to Console
run: |
cat .cdsapirc
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
sudo -H python -m pip install --upgrade pip
sudo -H pip install cdsapi
- name: Run tests
run: |
for FILE in modules/data.atmosphere/inst/integrationTests/*; do
Rscript $FILE;
done