|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | build:
|
12 |
| - runs-on: ${{ matrix.os }} |
| 12 | + runs-on: ${{ matrix.os }}-latest |
13 | 13 | strategy:
|
| 14 | + fail-fast: false |
14 | 15 | matrix:
|
15 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
16 |
| - python-version: [ '3.6', '3.7', '3.8' ] |
17 |
| - |
| 16 | + os: [ubuntu, macos, windows] |
| 17 | + python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3'] |
| 18 | + exclude: |
| 19 | + - os: windows |
| 20 | + python-version: pypy3 |
18 | 21 | steps:
|
19 | 22 | - uses: actions/checkout@v1
|
20 | 23 | - name: Set up Python ${{ matrix.python-version }}
|
21 | 24 | uses: actions/setup-python@v1
|
22 | 25 | with:
|
23 | 26 | python-version: ${{ matrix.python-version }}
|
24 |
| - - name: Install dependencies |
| 27 | + - name: Upgrade pip, etc. |
| 28 | + run: | |
| 29 | + python -m pip install --user --upgrade pip setuptools wheel |
| 30 | + - name: Get pip cache dir |
| 31 | + id: pip-cache |
| 32 | + run: | |
| 33 | + echo "::set-output name=dir::$(pip cache dir)" |
| 34 | + - name: Cache pip |
| 35 | + uses: actions/cache@v1 |
| 36 | + with: |
| 37 | + path: ${{ steps.pip-cache.outputs.dir }} |
| 38 | + key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }} |
| 39 | + restore-keys: | |
| 40 | + ${{ runner.os }}-pip-${{ matrix.python-version }}- |
| 41 | + ${{ runner.os }}-pip- |
| 42 | + - name: Install pip dependencies |
25 | 43 | run: |
|
26 |
| - python -m pip install --upgrade pip |
27 |
| - pip install -v -e ".[test]" |
28 |
| - - name: Install Jupyter Server from source |
| 44 | + pip install -v -e ".[test]" pytest-cov |
| 45 | + - name: Check pip environment |
29 | 46 | run: |
|
30 |
| - cd .. |
31 |
| - git clone https://github.com/jupyter/jupyter_server.git |
32 |
| - cd jupyter_server |
33 |
| - pip install -e . |
34 |
| - cd ../nbclassic |
| 47 | + pip freeze |
| 48 | + pip check |
| 49 | + # - name: Install Jupyter Server from source |
| 50 | + # run: | |
| 51 | + # cd .. |
| 52 | + # git clone https://github.com/jupyter/jupyter_server.git |
| 53 | + # cd jupyter_server |
| 54 | + # pip install -e . |
| 55 | + # cd ../nbclassic |
35 | 56 | - name: Test with pytest
|
36 | 57 | run: |
|
37 |
| - pytest |
| 58 | + pytest -vv --cov nbclassic --cov-report term-missing:skip-covered |
0 commit comments