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

Add GitHub Actions workflow #399

Merged
merged 2 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.