Skip to content

Commit bd88d34

Browse files
committed
Update metadatas.
1 parent 1d0cfd0 commit bd88d34

4 files changed

Lines changed: 30 additions & 16 deletions

File tree

.github/workflows/publish_testpypi.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: >
2929
uv sync
30+
--locked
3031
--no-sources
3132
--all-extras
3233
@@ -53,10 +54,14 @@ jobs:
5354
timeout-minutes: 7
5455

5556
- name: Test (Debug)
56-
if: runner.debug
57+
if: ${{ runner.debug && matrix.os != 'ubuntu-latest' }}
58+
env:
59+
CHOREO_ENABLE_DEBUG: 1
5760
run: uv run --no-sync poe debug-test
5861

5962
- name: Test (Debug, Linux)
6063
if: ${{ runner.debug && matrix.os == 'ubuntu-latest' }}
64+
env:
65+
CHOREO_ENABLE_DEBUG: 1
6166
run: xvfb-run uv run --no-sync poe debug-test
6267
timeout-minutes: 7

src/py/.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ repos:
2525
- id: check-toml
2626
- id: debug-statements
2727
- repo: https://github.com/asottile/add-trailing-comma
28-
rev: v3.2.0
28+
rev: v4.0.0
2929
hooks:
3030
- id: add-trailing-comma
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
3232
# Ruff version.
33-
rev: v0.13.3
33+
rev: v0.14.4
3434
hooks:
3535
# Run the linter.
3636
- id: ruff
@@ -55,7 +55,7 @@ repos:
5555
}\
5656
}"]
5757
- repo: https://github.com/rhysd/actionlint
58-
rev: v1.7.7
58+
rev: v1.7.8
5959
hooks:
6060
- id: actionlint
6161
name: Lint GitHub Actions workflow files
@@ -88,15 +88,15 @@ repos:
8888
entry: detect-secrets-hook
8989
args: ['']
9090
- repo: https://github.com/rvben/rumdl-pre-commit
91-
rev: v0.0.153 # Use the latest release tag
91+
rev: v0.0.173 # Use the latest release tag
9292
hooks:
9393
- id: rumdl
9494
# To only check (default):
9595
# args: []
9696
# To automatically fix issues:
9797
# args: [--fix]
9898
- repo: https://github.com/RobertCraigie/pyright-python
99-
rev: v1.1.406 # pin a tag; latest as of 2025-10-01
99+
rev: v1.1.407 # pin a tag; latest as of 2025-10-01
100100
hooks:
101101
- id: pyright
102102
args: ["--project=src/py"]

src/py/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ ignore = [
100100
asyncio_mode = "auto"
101101
asyncio_default_fixture_loop_scope = "function"
102102
log_cli = false
103+
addopts = "--import-mode=append"
104+
105+
[tool.poe]
106+
executor.type = "virtualenv"
103107

104108
[tool.poe.tasks]
105-
# name = cmd
109+
# <name> = "cmd"
106110

107111
[tool.poe.tasks.test]
108112
cmd = "pytest --timeout=50 --log-level=1 -W error -n auto -v -rfE --capture=fd"

0 commit comments

Comments
 (0)