Skip to content

feat: publish as @img2threejs/plugin-character on npm #2

feat: publish as @img2threejs/plugin-character on npm

feat: publish as @img2threejs/plugin-character on npm #2

Workflow file for this run

name: ci
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
test:
# ci-workflows python-ci @ main
uses: img2threejs/ci-workflows/.github/workflows/python-ci.yml@4b7a0612d2c52815792124a18ae3f9032a4f0a88
with:
python-version: '3.12'
test-command: |
pkg="$(node -p 'require("./package.json").version')"
plg="$(node -p 'require("./plugin.json").version')"
if [ "$pkg" != "$plg" ]; then
echo "version mismatch: package.json=$pkg plugin.json=$plg"
exit 1
fi
git clone --depth 1 https://github.com/img2threejs/img2 ../img2-harness
mkdir -p ../img2home
ln -s "$(cd ../img2-harness && pwd)" ../img2home/harness
IMG2_HOME="$(cd ../img2home && pwd)" python3 -m unittest discover -s tests