This commit is contained in:
parent
57151b1346
commit
66f3f53ca5
3 changed files with 34 additions and 37 deletions
|
|
@ -33,28 +33,27 @@ steps:
|
|||
|
||||
- name: install_deps
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
- poetry config virtualenvs.in-project 1
|
||||
- poetry install --with linters,test
|
||||
- pdm install -G :all
|
||||
depends_on:
|
||||
- restore_cache
|
||||
|
||||
- name: lint
|
||||
- name: lints 311
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
- .venv/bin/pre-commit run --all-files --color always
|
||||
- pdm run pre-commit run --all-files --color always
|
||||
depends_on:
|
||||
- install_deps
|
||||
|
||||
- name: tests
|
||||
- name: tests 311
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
image: git.roboces.dev/catalin/pdm:latest-311
|
||||
commands:
|
||||
- apk add --no-cache age openssh
|
||||
- ssh-keygen -t ed25519 -C "" -N "" -f /root/.ssh/id_ed25519
|
||||
- .venv/bin/pytest
|
||||
- pdm run pytest --cov=halig -vv tests --report-log reportlog.json
|
||||
- pdm run coverage html
|
||||
- pdm run coverage xml
|
||||
depends_on:
|
||||
- install_deps
|
||||
|
||||
|
|
@ -62,10 +61,8 @@ steps:
|
|||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
commands:
|
||||
- poetry build
|
||||
- poetry config repositories.roboces https://git.roboces.dev/api/packages/catalin/pypi
|
||||
- poetry config http-basic.roboces "$REGISTRY_USERNAME" "$REGISTRY_PASSWORD"
|
||||
- poetry publish --repository roboces
|
||||
- pdm publish -u $(PYPI_REGISTRY_USERNAME) -P $(PYPI_REGISTRY_PASSWORD)
|
||||
- pdm publish -u $(ROBOCES_REGISTRY_USERNAME) -P $(ROBOCES_REGISTRY_PASSWORD) -r https://git.roboces.dev/api/packages/catalin/pypi
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/v*
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# halig
|
||||
|
||||
[](https://ci.roboces.dev/catalin/halig)
|
||||

|
||||

|
||||

|
||||
|
|
|
|||
|
|
@ -2,16 +2,16 @@
|
|||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from rich import print
|
||||
from typer import Argument, Option, Typer
|
||||
|
||||
from halig import literals
|
||||
from halig.__version__ import __version__
|
||||
from halig.commands.edit import EditCommand
|
||||
from halig.commands.notebooks import NotebooksCommand
|
||||
from halig.commands.show import ShowCommand
|
||||
from halig.settings import load_from_file
|
||||
from halig.utils import capture
|
||||
from halig.__version__ import __version__
|
||||
from rich import print
|
||||
|
||||
app = Typer(pretty_exceptions_enable=False, pretty_exceptions_show_locals=False)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue