Bump apache/skywalking-eyes from e19b828cea6a6027cceae78f05d81317347d21be to 3ea9df11bb3a5a85665377d1fd10c02edecf2c40 in the actions group #23
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
defaults: | |
run: | |
shell: bash -eux {0} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.13"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install the extension | |
run: | | |
python -m pip install ".[test]" | |
- name: Test the extension | |
run: | | |
pytest . | |
- name: Build the extension | |
run: | | |
pip install build | |
python -m build --sdist | |
cp dist/*.tar.gz my_package.tar.gz | |
pip uninstall -y "jupyter_nbmodel_client" | |
rm -rf "jupyter_nbmodel_client" | |
- uses: actions/upload-artifact@v4 | |
if: startsWith(matrix.os, 'ubuntu') | |
with: | |
name: my_package-sdist-${{ matrix.python-version }} | |
path: my_package.tar.gz | |
check_links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1 | |
test_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Run Linters | |
run: | | |
bash ./.github/workflows/lint.sh | |
test_sdist: | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.13"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: "x64" | |
- uses: actions/download-artifact@v4 | |
with: | |
name: my_package-sdist-${{ matrix.python-version }} | |
- name: Install and Test | |
run: | | |
pip install my_package.tar.gz | |
pip list 2>&1 | grep -ie "jupyter_nbmodel_client" | |
python -c "import jupyter_nbmodel_client" | |
check_release: | |
needs: test_sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install Dependencies | |
run: | | |
pip install -e . | |
- name: Check Release | |
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Distributions | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jupyter_nbmodel_client-releaser-dist-${{ github.run_number }} | |
path: .jupyter_releaser_checkout/dist |