sms-handler/.forgejo/workflows/build.yaml
phil 27fd5074f2
Some checks failed
/ test (push) Failing after 4s
Update base url for CI
2024-12-05 18:30:31 +01:00

36 lines
813 B
YAML

on:
push:
workflow_dispatch:
inputs:
verbose:
description: "Verbose"
required: false
default: false
type: boolean
jobs:
test:
runs-on: container
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.5"
- name: Install
run: uv sync
- name: Run tests (API call)
run: .venv/bin/pytest -s tests/basic.py
- name: Build wheel
run: uv build --wheel
- name: Publish to home
env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philome/pypi --token $LOCAL_PYPI_TOKEN