File: pythonpackage.yml

package info (click to toggle)
nbclassic 0.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 1,492; makefile: 25; sh: 7
file content (61 lines) | stat: -rw-r--r-- 1,720 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Testing nbclassic

on:
  push:
    branches:
    - master
  pull_request:
    branches: '*'

jobs:
  build:
    runs-on: ${{ matrix.os }}-latest
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu, macos, windows]
        python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
        exclude:
        - os: windows
          python-version: pypy3
    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Upgrade pip, etc.
      run: |
        python -m pip install --user --upgrade pip setuptools wheel
    - name: Get pip cache dir
      id: pip-cache
      run: |
        echo "::set-output name=dir::$(pip cache dir)"
    - name: Cache pip
      uses: actions/cache@v1
      with:
        path: ${{ steps.pip-cache.outputs.dir }}
        key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
        restore-keys: |
          ${{ runner.os }}-pip-${{ matrix.python-version }}-
          ${{ runner.os }}-pip-
    - name: Install pip dependencies
      run: |
        pip install -v -e ".[test]" pytest-cov
    - name: Check pip environment
      run: |
        pip freeze
        pip check
    # - name: Install Jupyter Server from source
    #   run: |
    #     cd ..
    #     git clone https://github.com/jupyter/jupyter_server.git
    #     cd jupyter_server
    #     pip install -e .
    #     cd ../nbclassic
    - name: Run the help command
      run: |
        jupyter nbclassic -h
    - name: Test with pytest
      run: |
        pytest -vv --cov nbclassic --cov-report term-missing:skip-covered