File tree Expand file tree Collapse file tree 6 files changed +145
-1
lines changed Expand file tree Collapse file tree 6 files changed +145
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Check Release
2+ on :
3+ push :
4+ branches : ["main"]
5+ pull_request :
6+ branches : ["*"]
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ check_release :
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ group : [check_release, link_check]
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v2
20+ - name : Install Python
21+ uses : actions/setup-python@v2
22+ with :
23+ python-version : 3.9
24+ architecture : " x64"
25+ - name : Install node
26+ uses : actions/setup-node@v2
27+ with :
28+ node-version : " 14.x"
29+ - name : Get pip cache dir
30+ id : pip-cache
31+ run : |
32+ echo "::set-output name=dir::$(pip cache dir)"
33+ - name : Cache pip
34+ uses : actions/cache@v1
35+ with :
36+ path : ${{ steps.pip-cache.outputs.dir }}
37+ key : ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pip-
40+ ${{ runner.os }}-pip-
41+ - name : Cache checked links
42+ if : ${{ matrix.group == 'link_check' }}
43+ uses : actions/cache@v2
44+ with :
45+ path : ~/.cache/pytest-link-check
46+ key : ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md', '**/*.rst') }}-md-links
47+ restore-keys : |
48+ ${{ runner.os }}-linkcheck-
49+ - name : Upgrade packaging dependencies
50+ run : |
51+ pip install --upgrade pip setuptools wheel --user
52+ - name : Install Dependencies
53+ run : |
54+ pip install .
55+ - name : Check Release
56+ if : ${{ matrix.group == 'check_release' }}
57+ uses : jupyter-server/jupyter_releaser/.github/actions/check-release@v1
58+ with :
59+ token : ${{ secrets.GITHUB_TOKEN }}
60+ - name : Check Links
61+ if : ${{ matrix.group == 'link_check' }}
62+ uses : jupyter-server/jupyter_releaser/.github/actions/check-links@v1
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ pre-commit :
11+ name : pre-commit
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : actions/setup-python@v2
16+ - uses : pre-commit/action@v2.0.0
17+ with :
18+ extra_args : --all-files --hook-stage=manual
19+ - name : Help message if pre-commit fail
20+ if : ${{ failure() }}
21+ run : |
22+ echo "You can install pre-commit hooks to automatically run formatting"
23+ echo "on each commit with:"
24+ echo " pre-commit install"
25+ echo "or you can run by hand on staged files with"
26+ echo " pre-commit run"
27+ echo "or after-the-fact on already committed files with"
28+ echo " pre-commit run --all-files --hook-stage=manual"
29+
30+ test :
31+ name : Run tests on ${{ matrix.os }}
32+ runs-on : ${{ matrix.os }}
33+
34+ strategy :
35+ matrix :
36+ os : [ubuntu-latest, windows-latest, macos-latest]
37+ defaults :
38+ run :
39+ shell : bash -l {0}
40+ steps :
41+ - name : Checkout repository
42+ uses : actions/checkout@v2
43+ - name : Install Miniconda
44+ uses : conda-incubator/setup-miniconda@v2
45+ with :
46+ mamba-version : " *"
47+ channels : conda-forge
48+ python-version : " 3.7"
49+ - name : Install dependencies
50+ run : |
51+ mamba install python=${{ matrix.python-version }} pip
52+ pip install .[test]
Original file line number Diff line number Diff line change 1+ # Changelog
2+
3+ <!-- <START NEW CHANGELOG ENTRY> -->
4+
5+ ## 0.1.0
6+
7+ <!-- <END NEW CHANGELOG ENTRY> -->
Original file line number Diff line number Diff line change 1+ [ ![ Build Status] ( https://github.com/davidbrochart/jupyter_ydoc/workflows/Tests/badge.svg )] ( https://github.com/davidbrochart/jupyter_ydoc/actions )
2+ [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
3+
14# jupyter_ydoc
5+
26Document structures for collaborative editing using Ypy
Original file line number Diff line number Diff line change 1- from .ydoc import YFile , YNotebook
1+ from .ydoc import YFile , YNotebook # noqa
22
33__version__ = "0.1.0"
Original file line number Diff line number Diff line change 1+ [tool .check-manifest ]
2+ ignore = [" .*" ]
3+
4+ [tool .tbump .version ]
5+ current = " 0.1.0"
6+ regex = '''
7+ (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
8+ ((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
9+ '''
10+
11+ [tool .tbump .git ]
12+ message_template = " Bump to {new_version}"
13+ tag_template = " v{new_version}"
14+
15+ [[tool .tbump .file ]]
16+ src = " jupyter_ydoc/__init__.py"
17+
18+ [tool .jupyter-releaser ]
19+ skip = [" check-links" , " check-manifest" ]
You can’t perform that action at this time.
0 commit comments