Build session-based agent tool loop
Some checks failed
Test and publish / publish (push) Failing after 2s
Some checks failed
Test and publish / publish (push) Failing after 2s
This commit is contained in:
38
.gitea/workflows/publish.yml
Normal file
38
.gitea/workflows/publish.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Test and publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install workspace
|
||||
run: uv sync --all-packages
|
||||
|
||||
- name: Run core tests
|
||||
run: uv run python -m unittest discover -s tests
|
||||
|
||||
- name: Run tools tests
|
||||
run: uv run python -m unittest discover -s packages/micro-agents-tools/tests
|
||||
|
||||
- name: Build distributions
|
||||
run: |
|
||||
uv build --no-sources
|
||||
uv build --package micro-agents-tools --no-sources
|
||||
|
||||
- name: Publish to Gitea PyPI registry
|
||||
env:
|
||||
TWINE_USERNAME: Azimkin
|
||||
TWINE_PASSWORD: ${{ secrets.PACKAGE_TOKEN }}
|
||||
run: >-
|
||||
uvx --from twine twine upload
|
||||
--repository-url https://git.azimkin.dev/api/packages/Azimkin/pypi
|
||||
dist/*
|
||||
Reference in New Issue
Block a user