Skip to content

Commit 9ac3e14

Browse files
authored
Make CI work in forks (#163)
* minor comment in .gitignore to test the CI * trying to fix CI trigger in PR from forks * disable encryption
1 parent e5021b2 commit 9ac3e14

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: Run Unit Test via Pytest
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
branches: [ "**" ]
6+
push:
7+
branches: [ "**" ]
8+
tags: '*'
49
permissions:
510
# needed to allow actions to create and delete old caches
611
actions: write
712
contents: read
813
# pull-requests: write # not needed for the moment but may be useful to create bots that comment the PR
9-
env:
10-
data_encrypt: ${{ secrets.data_encrypt }}
14+
# env:
15+
# data_encrypt: ${{ secrets.data_encrypt }}
1116

1217
jobs:
1318
build:
@@ -66,9 +71,16 @@ jobs:
6671
mkdir -p dataDownload/
6772
fileId=1SUMYw1jfQClnfv_gP0izBD8MsHNc8V5P
6873
pip install gdown
69-
gdown https://drive.google.com/uc?id=$fileId -O dataDownload/data.tar.gz.gpg
70-
gpg -d --pinentry-mode=loopback --passphrase "$data_encrypt" dataDownload/data.tar.gz.gpg > dataDownload/data.tar.gz
74+
gdown https://drive.google.com/uc?id=$fileId -O dataDownload/data.tar.gz
7175
tar -xzf dataDownload/data.tar.gz -C dataDownload/
76+
# run: |
77+
# rm -rf dataDownload
78+
# mkdir -p dataDownload/
79+
# fileId=1SUMYw1jfQClnfv_gP0izBD8MsHNc8V5P
80+
# pip install gdown
81+
# gdown https://drive.google.com/uc?id=$fileId -O dataDownload/data.tar.gz.gpg
82+
# gpg -d --pinentry-mode=loopback --passphrase "$data_encrypt" dataDownload/data.tar.gz.gpg > dataDownload/data.tar.gz
83+
# tar -xzf dataDownload/data.tar.gz -C dataDownload/
7284
- name: Run tests
7385
run: |
7486
source .venv/bin/activate

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ docs/generated/
2020
docs/notebooks/
2121
docs/MBM_logo.png
2222

23+
# Local data folder
2324
.data/
2425

2526
regions/Switzerland/models/**

0 commit comments

Comments
 (0)