Skip to content

chore(deps): update ruff to version 0.14.10 and related dependencies #54

chore(deps): update ruff to version 0.14.10 and related dependencies

chore(deps): update ruff to version 0.14.10 and related dependencies #54

Workflow file for this run

name: Publish to TestPyPI
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
publish-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --with dev,format
- name: Run tests
run: |
poetry run ruff check .
poetry run mypy .
poetry run pytest tests/ -v --tb=short
env:
# Integration tests will be skipped if API keys are not provided
DOMAIN: ${{ secrets.DOMAIN }}
CHAT_KEY: ${{ secrets.CHAT_KEY }}
COMPLETION_KEY: ${{ secrets.COMPLETION_KEY }}
APP_KEY: ${{ secrets.APP_KEY }}
WORKFLOW_KEY: ${{ secrets.WORKFLOW_KEY }}
- name: Build package
run: poetry build
- name: Publish to TestPyPI
run: poetry publish --repository testpypi --skip-existing
env:
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TESTPYPI_TOKEN }}