aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml6
-rw-r--r--.github/workflows/publish.yml22
2 files changed, 14 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6151b64..ac2cec4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,12 +24,12 @@ jobs:
with:
python-version: ${{ matrix.python }}
- # Sin dependencias a propósito: si algún día hace falta instalar algo
- # para correr los tests, es que el proyecto dejó de ser stdlib-only.
+ # No dependencies on purpose: if installing something is ever needed
+ # to run the tests, the project is no longer stdlib-only.
- name: Tests
run: python -m unittest discover -s tests -t . -v
- - name: Se instala y el comando arranca
+ - name: Installs and the command starts
run: |
pip install .
claude-logbook --version
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 4fc675c..552aaa7 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,17 +1,17 @@
name: Publish
-# Publica en PyPI cuando se publica un release de GitHub.
+# Publishes to PyPI when a GitHub release is published.
#
-# No hay ningún token guardado: PyPI confía en este workflow por OIDC
-# (trusted publishing). Del lado de pypi.org hay que haber dado de alta un
-# "pending publisher" con exactamente estos cuatro datos:
+# No token is stored anywhere: PyPI trusts this workflow through OIDC
+# (trusted publishing). On pypi.org a "pending publisher" must have been
+# registered with exactly these four values:
#
# Owner ElvisClaros
# Repository claude-logbook
# Workflow publish.yml
# Environment pypi
#
-# Si alguno no coincide, PyPI rechaza el upload.
+# If any of them does not match, PyPI rejects the upload.
on:
release:
@@ -28,7 +28,7 @@ jobs:
url: https://pypi.org/p/claude-logbook
permissions:
- id-token: write # lo único que habilita el trusted publishing
+ id-token: write # the only thing trusted publishing needs
steps:
- uses: actions/checkout@v4
@@ -37,10 +37,10 @@ jobs:
with:
python-version: "3.13"
- # El número vive en claude_logbook/__init__.py y es fácil olvidarse de
- # subirlo. Mejor fallar acá que publicar algo mal rotulado: una versión
- # subida a PyPI no se puede reemplazar nunca, solo yankear.
- - name: El tag coincide con __version__
+ # The number lives in claude_logbook/__init__.py and it is easy to forget
+ # to bump it. Better to fail here than publish something mislabelled: a
+ # version uploaded to PyPI can never be replaced, only yanked.
+ - name: Tag matches __version__
run: |
tag="${GITHUB_REF_NAME#v}"
ver="$(python -c 'import claude_logbook; print(claude_logbook.__version__)')"
@@ -52,7 +52,7 @@ jobs:
python -m pip install --upgrade build
python -m build
- - name: Los artefactos están sanos
+ - name: Artifacts are sound
run: |
python -m pip install --upgrade twine
twine check dist/*