Skip to content

update ziti-sdk@1.7.8 #389

update ziti-sdk@1.7.8

update ziti-sdk@1.7.8 #389

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-latest }
- { name: 'macOS x86_64', runner: macos-latest }
# - { name: 'Windows x86_64', runner: windows-latest }
name: building ${{ matrix.spec.name }}
runs-on: ${{ matrix.spec.runner }}
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: Install ziti and run integration tests
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install -r tests/requirements.txt
pip install -r sample/requirements.txt
pip install .
python -m unittest tests/ziti_tests.py
- 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