Note about v3 in the README.md #354
Workflow file for this run
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: tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| FORCE_COLOR: true | |
| NODE: 22.14 | |
| PYTHON: 3.13 | |
| jobs: | |
| syntax-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "${{ env.NODE }}" | |
| cache: npm | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "${{ env.PYTHON }}" | |
| cache: pip | |
| - name: Install python package dev dependencies | |
| run: | | |
| pip install tox | |
| pip install .[dev] | |
| - name: Check syntax compliance | |
| run: pre-commit run --all-files --show-diff-on-failure | |
| python310: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| django: ["4.1", "4.2", "5.0", "5.1"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Python setup | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: pip | |
| - name: Install tox and django | |
| run: pip install tox "django==${{ matrix.django }}" | |
| - name: Run unit tests | |
| run: tox -e py3.10-django${{ matrix.django }} | |
| python313: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| django: ["4.1", "4.2", "5.0", "5.1"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Python setup | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: pip | |
| - name: Install tox and django | |
| run: pip install tox "django==${{ matrix.django }}" | |
| - name: Run unit tests | |
| run: tox -e py3.13-django${{ matrix.django }} | |
| javascript: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "${{ env.NODE }}" | |
| cache: npm | |
| - run: npm ci | |
| - run: npm test |