Skip to content

Fix Hatch build fails in src directory #503

Fix Hatch build fails in src directory

Fix Hatch build fails in src directory #503

Workflow file for this run

name: Check Release
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check_release:
runs-on: ubuntu-22.04
strategy:
matrix:
group: [check_release, link_check]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: "x64"
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
- name: Cache pip
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-pip-
- name: Cache checked links
if: ${{ matrix.group == 'link_check' }}
uses: actions/cache@v4
with:
path: ~/.cache/pytest-link-check
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md', '**/*.rst') }}-md-links
restore-keys: |
${{ runner.os }}-linkcheck-
- name: Upgrade packaging dependencies
run: |
pip install --upgrade pip wheel --user
- name: Install Dependencies
run: |
pip install -e .
- name: Check Release
if: ${{ matrix.group == 'check_release' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:
version_spec: 100.100.100
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Link Check
if: ${{ matrix.group == 'link_check' }}
uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
with:
ignore_glob: nbclassic/static/components/**/*.md docs-translations/*/*.md
ignore_links: http://127.0.0.1
- name: Upload Assets
if: ${{ matrix.group == 'check_release' && github.event_name == 'push' }}
uses: actions/upload-artifact@v4
with:
name: nbclassic-jupyter-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist