This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from jupyterlab/github-actions
Add GitHub Actions workflow
- Loading branch information
Showing
3 changed files
with
44 additions
and
42 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,43 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add conda to $PATH | ||
run: echo ::add-path::$CONDA/condabin | ||
|
||
- name: Update conda | ||
run: conda update -y -n base conda setuptools | ||
|
||
- name: Init conda | ||
run: | | ||
conda init bash | ||
conda info -a | ||
- name: Create the conda environment | ||
run: conda create -n jupyterlab-debugger --yes --quiet -c conda-forge nodejs jupyterlab=2 xeus-python=0.6.12 ptvsd python=$PYTHON_VERSION | ||
env: | ||
PYTHON_VERSION: '3.8' | ||
|
||
- name: Build the extension | ||
run: | | ||
source "$CONDA/etc/profile.d/conda.sh" | ||
conda activate jupyterlab-debugger | ||
jlpm | ||
jlpm run build | ||
- name: Run the tests | ||
run: | | ||
source "$CONDA/etc/profile.d/conda.sh" | ||
conda activate jupyterlab-debugger | ||
export XEUS_LOG=1 | ||
jlpm run test |
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
This file was deleted.
Oops, something went wrong.