Allow room to sync with provider #419
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| name: pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| - uses: pre-commit/action@v3.0.1 | |
| with: | |
| extra_args: --all-files --hook-stage=manual | |
| - name: Help message if pre-commit fail | |
| if: ${{ failure() }} | |
| run: | | |
| echo "You can install pre-commit hooks to automatically run formatting" | |
| echo "on each commit with:" | |
| echo " pre-commit install" | |
| echo "or you can run by hand on staged files with" | |
| echo " pre-commit run" | |
| echo "or after-the-fact on already committed files with" | |
| echo " pre-commit run --all-files --hook-stage=manual" | |
| test: | |
| name: Run tests on ${{ matrix.os }} python-${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| - 'pypy3.9' | |
| - 'pypy3.10' | |
| - 'pypy3.11' | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Ensure pip >= v25.1 | |
| run: python -m pip install "pip >= 25.1" | |
| - name: Install dependencies | |
| run: | | |
| pip install git+https://github.com/y-crdt/pycrdt | |
| pip install --group test . | |
| cd tests; npm install | |
| - name: Check types | |
| run: | | |
| mypy src tests | |
| - name: Run tests | |
| run: | | |
| pytest -v --color=yes --timeout=60 | |
| check_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
| - name: Check Release | |
| uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} |