chore: release main (#271) #230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python Observability Plugin | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| types: [opened, synchronize] | |
| paths: | |
| - 'sdk/@launchdarkly/observability-python/**' | |
| - '.github/workflows/python-plugin.yml' | |
| # - 'e2e/tests/**' | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| build: | |
| permissions: | |
| id-token: write # for python PyPI OIDC login | |
| contents: write | |
| pull-requests: write | |
| repository-projects: write | |
| name: Quality Check and Publish | |
| runs-on: ubuntu-22.04-8core-32gb | |
| defaults: | |
| run: | |
| working-directory: ./sdk/@launchdarkly/observability-python | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install poetry | |
| uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 | |
| - run: make install | |
| - name: Lint | |
| run: make lint | |
| - name: Test | |
| run: make test | |
| - name: Get Cover | |
| if: github.event_name == 'pull_request' | |
| uses: orgoro/coverage@v3 | |
| with: | |
| coverageFile: ./sdk/@launchdarkly/observability-python/coverage.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build | |
| run: poetry build | |
| #- name: Validate PyProject | |
| # working-directory: ./e2e/python/setuptools | |
| # run: | | |
| # python -m pip install -U pip pip-tools; | |
| # python -m piptools compile --upgrade pyproject.toml; | |
| #- name: Publish | |
| # if: github.ref == 'refs/heads/main' | |
| # uses: pypa/gh-action-pypi-publish@release/v1 | |
| # with: | |
| # packages-dir: ./sdk/@launchdarkly/observability-python/dist/ | |
| # skip-existing: true | |
| # e2e: | |
| # name: Validate E2E tests | |
| # runs-on: ubuntu-22.04-8core-32gb | |
| # defaults: | |
| # run: | |
| # working-directory: ./e2e/tests | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # token: ${{ secrets.GITHUB_TOKEN }} | |
| # - name: Install poetry | |
| # run: pipx install poetry | |
| # - uses: actions/setup-python@v4 | |
| # with: | |
| # python-version: '3.10' | |
| # cache: 'poetry' | |
| # - run: poetry install --all-extras | |
| # - name: Lint | |
| # run: poetry run black --check . |