diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88ba116a..1679a2f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,21 +138,17 @@ jobs: - run: mkdir junit-xml - run: poe test -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml - run: poe test -s --workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml - # This must remain the last step since it downgrades pydantic - - name: Uninstall pydantic - shell: bash - run: | - echo y | uv run pip uninstall pydantic - echo y | uv run pip uninstall pydantic-core - uv run pip install pydantic==1.10 - poe test -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--pydantic-v1.xml tests/pydantic_converter_v1/workflow_test.py + # Pydantic 1 cannot share a virtualenv with the project's Pydantic 2, so + # run this one test with Pydantic 1 layered over the project environment + # instead of downgrading it in place. The langsmith pytest plugin needs + # Pydantic 2, so it is disabled for this run (its entry point is langsmith_plugin). + - name: Test the Pydantic v1 sample + run: uv run --with "pydantic>=1.10,<2" pytest -s -p no:langsmith_plugin --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--pydantic-v1.xml tests/pydantic_converter_v1/workflow_test.py - # On latest, run gevent test + # Run the gevent sample's test on the newest Python in the matrix. - name: Gevent test - if: ${{ matrix.python == '3.12' }} - run: | - uv sync --group gevent - uv run gevent_async/test/run_combined.py + if: ${{ matrix.python == '3.14' }} + run: uv run --group gevent gevent_async/test/run_combined.py - name: Upload junit-xml artifacts uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7