2121 working-directory : ./src/py/
2222 name : Build and Test
2323 runs-on : ${{ matrix.os }}
24+ env :
25+ UV_PYTHON : ${{ matrix.python_v }}
2426 steps :
2527 - uses : actions/checkout@v4
2628 - uses : astral-sh/setup-uv@v5
@@ -31,16 +33,16 @@ jobs:
3133 # must actually checkout for version determination
3234 - run : git checkout ${{ github.ref_name }}
3335 - run : uv python install ${{ matrix.python_v }}
34- - run : uv python pin ${{ matrix.python_v }}
35- if : ${{ matrix.python_v != '' }}
3636 # don't modify sync file! messes up version!
37- - run : uv sync --all-extras --frozen # does order matter?
37+ - run : uv sync --all-extras --locked --no-sources
3838 - run : uv build
3939 - name : Reinstall from wheel
4040 run : >
4141 uv pip install dist/kaleido-$(uv
4242 run --no-sync --with setuptools-git-versioning
4343 setuptools-git-versioning)-py3-none-any.whl
44+ - run : uv run --no-sync python --version
45+ - run : uv pip freeze
4446 - run : uv run --no-sync kaleido_get_chrome -v # --i ${{ matrix.chrome_v }}
4547 - name : Diagnose
4648 run : uv run --no-sync choreo_diagnose --no-run
@@ -67,12 +69,16 @@ jobs:
6769 timeout-minutes : 8
6870
6971 - name : Test (Debug)
70- if : runner.debug
72+ if : ${{ runner.debug && matrix.os != 'ubuntu-latest' }}
73+ env :
74+ CHOREO_ENABLE_DEBUG : 1
7175 run : uv run --no-sync poe debug-test
7276 timeout-minutes : 20
7377
7478 - name : Test (Debug, Linux)
7579 if : ${{ runner.debug && matrix.os == 'ubuntu-latest' }}
80+ env :
81+ CHOREO_ENABLE_DEBUG : 1
7682 run : xvfb-run uv run --no-sync poe debug-test
7783 timeout-minutes : 8
7884
@@ -82,11 +88,10 @@ jobs:
8288 working-directory : ./src/py/
8389 name : Upload release to TestPyPI
8490 needs : super-test
85- if : |
86- always() &&
87- !cancelled() &&
88- !failure() &&
89- startsWith(github.ref, 'refs/tags/')
91+ if : ${{ !cancelled() &&
92+ !failure() &&
93+ github.event_name == 'push' &&
94+ github.run_attempt == 1 }}
9095 runs-on : ubuntu-latest
9196 environment :
9297 name : testpypi
0 commit comments