Skip to content

update tests to use quickstart #346

update tests to use quickstart

update tests to use quickstart #346

Workflow file for this run

name: build wheels
on:
push:
pull_request:
permissions:
contents: read
jobs:
build_wheels:
strategy:
fail-fast: false
matrix:
spec:
- { name: 'linux x86_64', runner: ubuntu-22.04 }
- { name: 'macOS x86_64', runner: macos-14 }
- { name: 'Windows x86_64', runner: windows-2019 }
name: building ${{ matrix.spec.name }}
runs-on: ${{ matrix.spec.runner }}
env:
HAVE_TEST_ID: ${{ secrets.ZITI_TEST_IDENTITY != '' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python Tools
run: python -m pip install -U pip setuptools
- name: Run Integration Tests
if: ${{ env.HAVE_TEST_ID == 'true' }}
env:
ZITI_TEST_IDENTITY: ${{ secrets.ZITI_TEST_IDENTITY }}
ZITI_IDENTITIES: id.json
shell: bash
run: tests/run.sh
- name: Build distro
run: |
python setup.py sdist
- uses: actions/upload-artifact@v4
if: startsWith(matrix.spec.name, 'linux')
with:
name: openziiti-sdist
path: ./dist/*
publish:
runs-on: ubuntu-latest
needs: [ build_wheels ]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: download
- name: check
run: |
ls -lR download
mkdir dist
cp download/*/* dist
- name: Publish wheels (TestPYPI)
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
packages-dir: dist
skip-existing: true
verbose: true
- name: Publish wheels (PyPI)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: dist
verbose: true