Skip to content

fix citations

fix citations #1439

#
# This workflow will build/test/lint the Python SDK.
#
name: Python Build/Test/Lint
on:
workflow_call:
push:
branches: ['**']
paths: ['python/**']
pull_request:
branches: ['**']
paths: ['python/**']
permissions: read-all
jobs:
build-test-lint:
name: Build/Test/Lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
defaults:
run:
working-directory: python/
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
python scripts/install.py
- name: Check
run: |
python scripts/check.py
- name: Build
run: |
python scripts/build.py
- name: Test
run: |
python scripts/test.py
- name: Lint
run: |
python scripts/lint.py
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit