-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (38 loc) · 1015 Bytes
/
ci_tests.yaml
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
name: CI
on:
push:
pull_request:
schedule:
# run every Monday at 6am UTC
- cron: '0 6 * * 1'
jobs:
ci-tests:
strategy:
max-parallel: 4
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest wheel jupyterlab
- name: Install the package
run: |
pip install .
- name: Check labextension is installed
shell: bash
run: |
jupyter labextension list
$(jupyter labextension list | grep ipyevents > ipyevents_lines.txt) || echo
test ! -s ipyevents_lines.txt
- name: Run unit ci-tests
run: |
pytest ipyevents