update sdk version to 0.2.16 #286
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: Main CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
workflow_call: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
environment: dev | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
defaults: | |
run: | |
shell: bash -el {0} | |
env: | |
CACHE_NUMBER: 0 | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/uv | |
~/.cache/pip | |
key: uv-${{ matrix.python-version }}-${{ hashFiles('requirements/requirements*.txt') }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('MANIFEST.in') }}-${{ env.CACHE_NUMBER }} | |
restore-keys: | | |
uv-${{ matrix.python-version }}- | |
- name: Install base dependencies | |
run: | | |
which python | |
pip install uv | |
uv pip install --system -e '.[test,all]' | |
- name: Quality Check | |
uses: pre-commit/[email protected] | |
continue-on-error: true | |
- name: Run all tests | |
run: | | |
# Install all extras and run complete test suite | |
uv pip install --system -e '.[all]' | |
pytest tests/common/test_dependencies.py -v | |
make test |