forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
47 lines (46 loc) · 1.74 KB
/
.gitpod.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
# Only /workspace folder is preserved on restarts, therefore both the Python
# virtual environment and pre-commit caches have to be installed there
image:
file: .gitpod.Dockerfile
tasks:
- name: Setup venv and dev tools
init: |
ln -sfn /workspace/gt4py/.gitpod/.vscode /workspace/gt4py/.vscode
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -e .
pip install -r requirements-dev.txt
pip install -i https://test.pypi.org/simple/ atlas4py
pre-commit install --install-hooks
sed 's%# start templated%# start templated\nsource /workspace/gt4py/.venv/bin/activate%' /workspace/gt4py/.git/hooks/pre-commit -i
deactivate
command: source .venv/bin/activate
env:
PIP_SRC: _external_src
PRE_COMMIT_HOME: /workspace/.caches/pre-commit
vscode:
extensions:
- ms-python.python
- ms-toolsai.jupyter
- ms-toolsai.jupyter-keymap
- ms-toolsai.jupyter-renderers
- genuitecllc.codetogether
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: false
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false