node.js should associate console logs with session context (#7048) #101
This file contains 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 SDK | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- 'sdk/highlight-py/**' | |
- '.github/workflows/python.yml' | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build: | |
name: Python SDK | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./sdk/highlight-py | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 . | |
- name: Test | |
run: poetry run pytest --cov=highlight_io --cov-branch --cov-report xml | |
- name: Get Cover | |
if: github.event.pull_request.head.repo.full_name == 'highlight/highlight' | |
uses: orgoro/coverage@v3 | |
with: | |
coverageFile: ./sdk/highlight-py/coverage.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: poetry build | |
- name: Validate PyProject | |
working-directory: ./e2e/python | |
run: | | |
python -m pip install -U pip-tools; | |
python -m piptools compile --upgrade pyproject.toml; | |
- name: Publish | |
if: github.ref == 'refs/heads/main' | |
run: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing | |
env: | |
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |