Repository navigation
feat: publish as @img2threejs/plugin-character on npm #2
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: | |
| 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 |