Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #399 from jupyterlab/github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow
  • Loading branch information
jtpio committed Mar 17, 2020
2 parents 92d8690 + ae8ada3 commit 932c743
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 42 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @jupyterlab/debugger

[![Build Status](https://dev.azure.com/jupyterlab/jupyterlab/_apis/build/status/jupyterlab.debugger?branchName=master)](https://dev.azure.com/jupyterlab/jupyterlab/_build/latest?definitionId=3&branchName=master)
![Github Actions Status](https://github.com/jupyterlab/debugger/workflows/tests/badge.svg)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyterlab/debugger/stable?urlpath=/lab/tree/examples/index.ipynb)
[![npm](https://img.shields.io/npm/v/@jupyterlab/debugger.svg)](https://www.npmjs.com/package/@jupyterlab/debugger)

Expand Down
41 changes: 0 additions & 41 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 932c743

Please sign in to comment.