Allow semver-compatible frontend versions #1684
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
LintPython: | |
name: Python / Lint | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- run: | | |
pip install uv | |
uv pip install --system ruff | |
ruff check | |
ruff format | |
TypecheckPython: | |
name: Python / Typecheck | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
# Disable jupyter-builder build hook because not needed for typechecking, and requires npm | |
- run: | | |
sed -i '' 's/\[tool.hatch.build.hooks.\(.*\)\]/\[_tool.hatch.build.hooks.\1\]/' pyproject.toml | |
cat pyproject.toml | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- run: | | |
pip install uv | |
uv pip install --system -e '.[test,dev]' | |
- run: mypy | |
TestPython: | |
name: Python / Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- run: pnpm install --frozen-lock | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- if: ${{ matrix.python-version != '3.7' }} | |
run: | | |
pip install uv | |
uv pip install --system -e '.[test,dev]' | |
- if: ${{ matrix.python-version == '3.7' }} | |
run: | | |
pip install -e '.[test,dev]' | |
- name: Run tests | |
run: pytest ./tests --color=yes --cov anywidget --cov-report xml | |
- uses: codecov/codecov-action@v4 | |
LintJavaScript: | |
name: JavaScript / Lint | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dprint/[email protected] | |
TypecheckJavaScript: | |
name: JavaScript / Typecheck | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- run: | | |
pnpm install | |
pnpm typecheck | |
TestJavaScript: | |
name: JavaScript / Test | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "22.x" | |
- run: | | |
pnpm install | |
pnpm test |