diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 3d56fa8e5..b86e1120b 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -69,38 +69,22 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] + test-pydantic1: + name: Test pydantic 1 + uses: pyapp-kit/workflows/.github/workflows/test-pyrepo.yml@v2 + with: + os: ubuntu-latest + python-version: 3.11 + qt: pyqt6 + pip-post-installs: '"pydantic<2"' + coverage-upload: artifact + upload_coverage: if: always() - needs: [test, test-min-reqs] + needs: [test, test-min-reqs, test-pydantic1] uses: pyapp-kit/workflows/.github/workflows/upload-coverage.yml@v2 secrets: inherit - test-pydantic1: - name: Test pydantic1 - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - - uses: tlambert03/setup-qt-libs@v1.7 - - - name: Install dependencies - run: | - python -m pip install -e . - python -m pip install pytest 'pydantic<2' attrs pytest-cov pyqt6 - - - name: Test - uses: aganders3/headless-gui@v2 - with: - run: pytest tests/test_ui_field.py -v --color=yes --cov=magicgui --cov-report=xml - - - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - test-dependents: uses: pyapp-kit/workflows/.github/workflows/test-dependents.yml@v2 with: