ci: install CI dependencies from hash-pinned locks #111
Workflow file for this run
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: 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 | |
| # Third-party dependencies come from the hash-pinned lock first; the | |
| # local package then goes in with --no-deps, because pip cannot | |
| # hash-pin an editable install in the same invocation. | |
| - run: python -m pip install --require-hashes -r requirements/test.txt | |
| - run: python -m pip install --no-deps -e . | |
| - 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 |