Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 0 additions & 84 deletions .github/deploy.yml

This file was deleted.

Empty file added .github/workflows/deploy.yml
Empty file.
90 changes: 0 additions & 90 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -1,90 +0,0 @@
name: Test Release (Dry Run)

on:
workflow_dispatch:
inputs:
python-version:
description: "Python version to test with (or 'all' for full matrix)"
required: false
default: "3.12"

env:
ARTIFACTORY_URL: ${{ vars.ARTIFACTORY_URL }}

jobs:
test:
name: Test - Python ${{ matrix.python-version }}
runs-on: ${{ github.repository_owner == 'twilio-internal' && 'ubuntu-x64' || 'ubuntu-latest' }}
timeout-minutes: 20
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
python-version: ${{ github.event.inputs.python-version == 'all' && fromJson('["3.8","3.9","3.10","3.11","3.12","3.13"]') || fromJson(format('["{0}"]', github.event.inputs.python-version)) }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Authenticate with Artifactory
uses: ./.github/actions/artifactory-oidc

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install virtualenv --upgrade
make install test-install

- name: Run tests
run: make test-with-coverage

deploy-dry-run:
name: Deploy (Dry Run - No Publish)
needs: [test]
runs-on: ${{ github.repository_owner == 'twilio-internal' && 'ubuntu-x64' || 'ubuntu-latest' }}
environment: pypi
permissions:
contents: read
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4

- name: Authenticate with Artifactory
uses: ./.github/actions/artifactory-oidc

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Validate version in setup.py
run: |
PKG_VERSION=$(python setup.py --version)
echo "Package version: $PKG_VERSION"
echo "PKG_VERSION=$PKG_VERSION" >> "$GITHUB_ENV"

- name: Build package
run: |
pip install build
python -m build

- name: Verify package
run: |
pip install twine
twine check dist/*

- name: List built artifacts
run: |
echo "Built artifacts:"
ls -lh dist/
echo ""
echo "Package version: $PKG_VERSION"
echo ""
echo "--- DRY RUN COMPLETE ---"
echo "To publish for real, create a GitHub Release with a matching tag"
echo "and use the deploy.yml workflow."