Repository navigation
Merge pull request #74 from widgetti/fix/setter-does-not-wait #552
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: Unit testing | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/installation.yml | |
| code-quality: | |
| uses: ./.github/workflows/codequality.yaml | |
| unit-test: | |
| needs: [build, code-quality] | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"] | |
| # run the suite against both the default renderer and the opt-in fast | |
| # one (REACTON_FAST=1), so both stay green | |
| reacton-fast: ["0", "1"] | |
| # ipyvue/ipyvuetify 3 are the Vue 3 port. Pin the 1.x line by default and | |
| # add one python version that runs against the 3.x line, so reacton keeps | |
| # working with both. | |
| ipyvue: ["<3"] | |
| include: | |
| - python-version: "3.12" | |
| reacton-fast: "0" | |
| ipyvue: ">=3" | |
| - python-version: "3.12" | |
| reacton-fast: "1" | |
| ipyvue: ">=3" | |
| name: unit-test${{ matrix.ipyvue == '>=3' && '-vue3' || '' }} (py${{ matrix.python-version }}, REACTON_FAST=${{ matrix.reacton-fast }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: reacton-build-${{ github.run_number }} | |
| path: ./dist | |
| - name: Install | |
| run: | | |
| pip install `echo dist/*.whl`[dev] "bqplot<0.13" "pandas<3" "ruff==0.8.3" "ipyvue${{ matrix.ipyvue }}" "ipyvuetify${{ matrix.ipyvue }}" | |
| - name: test | |
| env: | |
| REACTON_FAST: ${{ matrix.reacton-fast }} | |
| run: pytest --cov=reacton reacton |