mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
clean up ci
This commit is contained in:
parent
3e75f329c3
commit
1fdfa39622
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -2,16 +2,17 @@ name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
permissions:
|
||||
contents:
|
||||
write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||
|
||||
|
7
.github/workflows/buildutils.yml
vendored
7
.github/workflows/buildutils.yml
vendored
@ -2,14 +2,17 @@ name: Build Utilities
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
branches: '*'
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash -l {0}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
versioning:
|
||||
runs-on: ubuntu-latest
|
||||
|
27
.github/workflows/check-release.yml
vendored
27
.github/workflows/check-release.yml
vendored
@ -1,36 +1,37 @@
|
||||
name: Check Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
|
||||
permissions:
|
||||
contents:
|
||||
write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check_release:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
group: [check_release, link_check]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Base Setup
|
||||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
|
||||
|
||||
- name: Upgrade packaging dependencies
|
||||
run: |
|
||||
pip install --upgrade jupyter-packaging~=0.10 --user
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install .
|
||||
|
||||
pip install -e .
|
||||
- name: Check Release
|
||||
if: ${{ matrix.group == 'check_release' }}
|
||||
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
version_spec: next
|
||||
- name: Check Links
|
||||
if: ${{ matrix.group == 'link_check' }}
|
||||
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
|
||||
|
39
.github/workflows/docs.yml
vendored
39
.github/workflows/docs.yml
vendored
@ -1,40 +1,23 @@
|
||||
name: Docs Tests
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
branches: '*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu]
|
||||
python-version: [ '3.7' ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Install Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Base Setup
|
||||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
architecture: 'x64'
|
||||
- name: Upgrade packaging dependencies
|
||||
run: |
|
||||
pip install --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-
|
||||
python_version: '3.7'
|
||||
- name: Install the Python dependencies
|
||||
run: |
|
||||
pip install -e .[test] codecov
|
||||
|
11
.github/workflows/ui-tests.yml
vendored
11
.github/workflows/ui-tests.yml
vendored
@ -1,6 +1,13 @@
|
||||
name: UI Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -97,4 +104,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: notebook-${{ matrix.browser }}-updated-snapshots
|
||||
path: ui-tests/test
|
||||
path: ui-tests/test
|
||||
|
Loading…
Reference in New Issue
Block a user