Skip to content

chore: remove pyroscope_cli (#238) #567

chore: remove pyroscope_cli (#238)

chore: remove pyroscope_cli (#238) #567

Workflow file for this run

name: Python Package
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
linux-build:
name: Linux - amd64
runs-on: ubuntu-x64-large
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: stable
- name: Build in Docker
run: make wheel/linux/amd64
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: "linux.whl"
path: pyroscope_ffi/python/dist/*
linux-test:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13"]
needs: ["linux-build"]
name: Linux Test
runs-on: ubuntu-x64-large
env:
PYROSCOPE_RUN_ID: ${{ github.run_id }}
PYROSCOPE_ARCH: x86-64-linux
PYROSCOPE_API_TOKEN: ${{ secrets.PYROSCOPE_API_TOKEN }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
steps:
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
with:
python-version: ${{ matrix.PYTHON_VERSION }}
architecture: x64
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # 4.3.0
with:
name: "linux.whl"
path: "${{github.workspace}}/python"
- run: "cd ${{ github.workspace }}/python && ls -l"
- run: "cd ${{ github.workspace }}/python && pip install *.whl"
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- run: docker run -d -p4040:4040 grafana/pyroscope
- run: python pyroscope_ffi/python/scripts/tests/test.py
linux-arm-build:
name: Linux - arm64
runs-on: ubuntu-arm64-large
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: stable
- name: Build in Docker
run: make wheel/linux/arm64
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: "linux-arm.whl"
path: pyroscope_ffi/python/dist/*
sdist-build:
name: sdist
runs-on: ubuntu-x64-small
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
with:
python-version: 3.9
- name: Upgrade pip
run: |
python -m pip install --upgrade pip pipenv wheel
- name: Build sdist
run: python setup.py sdist
working-directory: pyroscope_ffi/python
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: "sdist.whl"
path: pyroscope_ffi/python/dist/*
macos-build:
strategy:
fail-fast: false
matrix:
include:
- macos-version: "14"
target: x86_64-apple-darwin
mk-arch: amd64
- macos-version: "14"
target: aarch64-apple-darwin
mk-arch: arm64
name: macOS - ${{ matrix.target }}
runs-on: macos-${{ matrix.macos-version }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: 1.85.0
targets: ${{ matrix.target }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
with:
python-version: 3.11
- run: make wheel/mac/${{ matrix.mk-arch }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ github.sha }}-python-${{ matrix.target }}
path: pyroscope_ffi/python/dist/*