Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b7da2aa
initial commit
winsomeglint Mar 5, 2026
0ab3fd4
linting
winsomeglint Mar 5, 2026
d336ea0
add asr-worker and translation-worker tests
winsomeglint Mar 5, 2026
540edc1
asr-worker linting
winsomeglint Mar 5, 2026
04a8665
regularize source/target language codes
winsomeglint Mar 5, 2026
958320a
uv.lock
winsomeglint Mar 5, 2026
3468b67
dev deps
winsomeglint Mar 5, 2026
181dd14
fix circular imports in datashare-python objects/constants
winsomeglint Mar 6, 2026
23bb3bb
chore(datashare-python): fix `DatashareTaskClient.get_task_result`
ClemDoum Mar 5, 2026
bc36277
chore(datashare-python): fix progress search attribute update
ClemDoum Mar 5, 2026
2ea3d23
chore(datashare-python): fix ping workflow e2e test
ClemDoum Mar 5, 2026
c0fcce5
chore(datashare-python): fix missing workflow arguments
ClemDoum Mar 5, 2026
345db8f
chore(datashare-python): fix `DatashareTaskClient.get_task_result`
ClemDoum Mar 5, 2026
5b43ea9
release(datashare-python): 0.2.0
ClemDoum Mar 5, 2026
fc7405d
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
9297da9
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
0cbb8ee
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
a046512
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
f64e334
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
381ff1f
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
e8fc0a4
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
26cd4a1
refactor(.github): datashare-python pypi release
ClemDoum Mar 5, 2026
535c41f
refactor(.github): datashare-python pypi release
ClemDoum Mar 6, 2026
01fdf2a
release(datashare-python): `0.2.9`
ClemDoum Mar 6, 2026
4239a33
release(datashare-python): `0.2.10`
ClemDoum Mar 6, 2026
175df6a
refactor(worker-template): do no install ML deps by default
ClemDoum Mar 6, 2026
3290a9c
refactor(worker-template): rename package to `datashare-worker-template`
ClemDoum Mar 6, 2026
4715a68
release: `datashare-python` to `0.2.12` and `worker-template` to `0.…
ClemDoum Mar 6, 2026
3c5c3cb
chore: improve workflow naming
ClemDoum Mar 6, 2026
26d740b
fix(datashare-python): hatchling missing dep
ClemDoum Mar 6, 2026
990289e
fix(datashare-python): exclude test from distributed files
ClemDoum Mar 6, 2026
6d9ec7f
fix(datashare-python): missing worker template artifact
ClemDoum Mar 6, 2026
8f75797
fix(datashare-python): missing worker template artifact
ClemDoum Mar 6, 2026
498c7d5
fix(datashare-python): missing worker template artifact
ClemDoum Mar 6, 2026
72bac79
fix(datashare-python): missing tomlkit build dependency
ClemDoum Mar 6, 2026
eed986a
fix(datashare-python): make build script standalone
ClemDoum Mar 6, 2026
68a6278
fix(datashare-python): fix wheel distribution missing with an empty t…
ClemDoum Mar 6, 2026
7a25589
fix(worker-template): bump datashare-python
ClemDoum Mar 6, 2026
7540240
fix(datashare-python,worker-template): template package name
ClemDoum Mar 6, 2026
8391ad8
fix(datashare-python,worker-template): template package name
ClemDoum Mar 6, 2026
978e0e8
release(datashare-python): `0.2.22`
ClemDoum Mar 6, 2026
9942bf7
fix(datashare-python): empty project URLs
ClemDoum Mar 6, 2026
a5ea7b4
exclude tests
winsomeglint Mar 10, 2026
20d618b
ruff formatting
winsomeglint Mar 10, 2026
0301ff8
ruff check/format + pre commit
winsomeglint Mar 10, 2026
7d2d3d5
test paths
winsomeglint Mar 10, 2026
236df62
uv lock
winsomeglint Mar 10, 2026
ded8d74
remove .utils_ imports from worker-template
winsomeglint Mar 10, 2026
8305d11
fix asr worker paths
winsomeglint Mar 10, 2026
36398a3
asr test namespace
winsomeglint Mar 10, 2026
2fe380b
pytest
winsomeglint Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/actions/pylint/action.yml

This file was deleted.

31 changes: 23 additions & 8 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'datashare-python/**.py'
- 'worker-template/**.py'
- 'asr-worker/**.py'
- '.github/workflows/linting.yml'
- 'translation-worker/**.py'

# TODO: leverage some caching here
jobs:
Expand Down Expand Up @@ -37,26 +37,41 @@ jobs:
- name: Lint test
run: ruff check --config qa/ruff.toml worker-template

doc:
asr-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: "--version" # skips test by displaying the version
- name: Check formatting
run: ruff format --config qa/ruff.toml --check docs
run: ruff format --config qa/ruff.toml --check asr-worker
- name: Lint test
run: ruff check --config qa/ruff.toml docs
run: ruff check --config qa/ruff.toml asr-worker

asr-worker:
translation-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pylint
name: "Lint ASR worker"
- uses: astral-sh/ruff-action@v3
with:
path: asr-worker
args: "--version" # skips test by displaying the version
- name: Check formatting
run: ruff format --config qa/ruff.toml --check translation-worker
- name: Lint test
run: ruff check --config qa/ruff.toml translation-worker

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: "--version" # skips test by displaying the version
- name: Check formatting
run: ruff format --config qa/ruff.toml --check docs
- name: Lint test
run: ruff check --config qa/ruff.toml docs

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
99 changes: 0 additions & 99 deletions .github/workflows/publish.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/publish_datashare_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish datashare-python

on:
workflow_dispatch:
push:
tags:
- 'datashare-python-*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create GH release
run: gh release create "$tag" --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}

publish-datashare-python-to-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/datashare-python
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.8"
- name: Install Python 3.11
run: uv python install 3.11
- name: Build
run: cd datashare-python && uv build
- name: Publish
run: cd datashare-python && uv publish

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
42 changes: 42 additions & 0 deletions .github/workflows/publish_worker_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish worker-template

on:
workflow_dispatch:
push:
tags:
- 'worker-template-*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create GH release
run: gh release create "$tag" --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}

publish-datashare-python-to-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/datashare-worker-template
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.8"
- name: Install Python 3.11
run: uv python install 3.11
- name: Build
run: cd worker-template && uv build
- name: Publish
run: cd worker-template && uv publish

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,60 @@ jobs:
uv sync --frozen --all-extras
uv run --frozen python -m pytest --timeout=180 -vvv --cache-clear --show-capture=all -r A

test-asr-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python project
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.5.0
with:
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yml') }}
- name: Start test services
run: docker compose up -d datashare temporal-post-init elasticsearch
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.ASTRAL_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
enable-cache: true
working-directory: asr-worker
- name: Run tests
run: |
cd asr-worker
uv sync --frozen --all-extras
uv run --frozen python -m pytest --timeout=180 -vvv --cache-clear --show-capture=all -r A

test-translation-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python project
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.5.0
with:
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.yml') }}
- name: Start test services
run: docker compose up -d datashare temporal-post-init elasticsearch
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.ASTRAL_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
enable-cache: true
working-directory: translation-worker
- name: Run tests
run: |
cd translation-worker
uv sync --frozen --all-extras
uv run --frozen python -m pytest --timeout=180 -vvv --cache-clear --show-capture=all -r A

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
repos:
- repo: https://github.com/psf/black
rev: 26.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: black
language_version: python3.10
- id: ruff-check
args: [--fix]
types_or: [python, pyi]
- id: ruff-format
types_or: [python, pyi]
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ WORKDIR /app

# add task cli
ADD datashare-python/ ./datashare-python/
ADD worker-template/ ./worker-template/

# install python deps
RUN --mount=type=cache,target=~/.cache/uv \
uv pip install --system datashare-python/
RUN --mount=type=cache,target=~/.cache/uv uv pip install --system worker-template/
RUN --mount=type=cache,target=~/.cache/uv uv pip install --system datashare-python/

# copy build-independant files
ADD scripts scripts
Expand Down
6 changes: 1 addition & 5 deletions asr-worker/asr_worker/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@

PARAKEET = "parakeet"

DEFAULT_TEMPORAL_ADDRESS = "temporal:7233"

RESPONSE_SUCCESS = "success"

RESPONSE_ERROR = "error"
ASR_WORKFLOW_NAME = "asr-workflow"
Loading
Loading