Release PolyStore 0.1.21 #68
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: Smoke Test | |
| on: | |
| push: | |
| branches: [ main, copilot/** ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| smoke-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Test basic imports | |
| run: | | |
| python -c "import polystore; print(f'✓ polystore {polystore.__version__}')" | |
| python -c "from polystore import FileManager, MemoryBackend, DiskBackend; print('✓ All imports work')" | |
| - name: Test basic functionality | |
| run: | | |
| python << 'PYEOF' | |
| import numpy as np | |
| from polystore import MemoryBackend | |
| backend = MemoryBackend() | |
| backend.ensure_directory("/") | |
| data = np.array([1, 2, 3]) | |
| backend.save(data, "/test.npy") | |
| loaded = backend.load("/test.npy") | |
| assert np.array_equal(data, loaded) | |
| print("✓ Basic memory backend works") | |
| PYEOF |