test(entity): pin cross-publisher delete is forbidden and missing id … #154
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Test on Python ${{ matrix.python }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[server,dev,crypto]' | |
| - name: Lint (warnings only) | |
| continue-on-error: true | |
| run: | | |
| ruff check zhub/ tests/ || true | |
| - name: Test | |
| run: | | |
| pytest -v | |
| kotlin-test: | |
| name: Kotlin module test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Build + test kotlin module | |
| working-directory: kotlin | |
| run: | | |
| gradle test build --no-daemon --stacktrace | |
| js-test: | |
| name: JS/TS module test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Clean install | |
| working-directory: js | |
| # Lockfile was generated on Termux where rollup native binding | |
| # is broken — `npm ci` may diverge in CI. Use a clean `npm install` | |
| # without cache to get fresh, complete deps. | |
| run: | | |
| rm -f package-lock.json | |
| npm install --no-audit --no-fund | |
| - name: Type check | |
| working-directory: js | |
| run: npx tsc -p tsconfig.json --noEmit | |
| - name: Test | |
| working-directory: js | |
| run: npm test |