chore: Adding a PyTorch extra for natively supporting PyTorch Tensors serialization online and offline #1034
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: smoke-tests | |
on: | |
pull_request: | |
paths-ignore: | |
- 'community/**' | |
- 'docs/**' | |
- 'examples/**' | |
jobs: | |
unit-test-python: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9", "3.10", "3.11"] | |
os: [ ubuntu-latest ] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install uv | |
run: | | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Get uv cache dir | |
id: uv-cache | |
run: | | |
echo "dir=$(uv cache dir)" >> $GITHUB_OUTPUT | |
- name: uv cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.uv-cache.outputs.dir }} | |
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-uv-${{ hashFiles(format('**/py{0}-ci-requirements.txt', env.PYTHON)) }} | |
- name: Install dependencies | |
run: | | |
uv pip sync --system sdk/python/requirements/py${{ matrix.python-version }}-requirements.txt | |
uv pip install --system --no-deps . | |
- name: Test Imports | |
run: python -c "from feast import cli" |