-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): enable gitpod development
Use the initalization phase to install all of the Python versions and run the tests on startup, making subsequent test runs faster. Signed-off-by: Mike Fiedler <miketheman@gmail.com>
- Loading branch information
1 parent
68a9df9
commit 03e49a5
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://www.gitpod.io/docs/references/gitpod-yml for full reference | ||
|
||
tasks: | ||
- name: Setup Development and run Tests | ||
|
||
init: | | ||
# Upgrade pyenv itself | ||
pyenv update | ||
export PY_VERSIONS="3.7 3.8 3.9 3.10" | ||
# Install all supported Python versions | ||
for py in $PY_VERSIONS; | ||
do pyenv install "$py":latest --skip-existing ; | ||
done | ||
# Make versions available via $PATH, exclude GitPod default | ||
pyenv global $(pyenv versions --bare | grep -v 3.8.12) | ||
# Install `tox` test orchestrator | ||
pip install tox | ||
command: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters