Skip to content

ci: add actionlint and a test-environment guard (#48) #110

ci: add actionlint and a test-environment guard (#48)

ci: add actionlint and a test-environment guard (#48) #110

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
typescript:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/typescript
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "20"
cache: npm
cache-dependency-path: packages/typescript/package-lock.json
- run: npm ci --ignore-scripts
- run: npm run check
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install -e ".[test]" build
- run: python tools/check_versions.py
- run: python tools/check_schemas.py
- run: python tools/check_otel_compatibility.py
- run: python tools/check_typescript_schemas.py
- run: python conformance/runner/validate.py
- run: python -m unittest discover -s tests -v
- run: python -m compileall -q src
- if: matrix.python-version == '3.12'
run: python -m build
- if: matrix.python-version == '3.12'
run: |
python tools/smoke_wheel.py dist/*.whl
python tools/smoke_wheel.py dist/*.tar.gz