Add example script to test reading and writing partial chunks #777
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
sdist: | |
name: Create sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: 3.x | |
- name: Ubuntu library headers | |
run: | | |
sudo apt update | |
# Keep in sync with "Prerequisites" in User's Guide. | |
sudo apt install libblosc-dev libbz2-dev libhdf5-dev liblz4-dev liblzo2-dev libsnappy-dev libzstd-dev zlib1g-dev | |
- name: Source distribution | |
run: | | |
pip install build | |
python -m build --sdist | |
- name: Save source distribution | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tables-sdist | |
path: dist/*.tar.gz | |
build: | |
name: ${{ matrix.os }} ${{ matrix.python }} ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
needs: sdist | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
# Keep in sync with ``project.classifiers`` in ``pyproject.toml``. | |
python: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up Python ${{ matrix.python }} | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
auto-update-conda: true | |
channels: conda-forge | |
channel-priority: strict | |
- name: Install dependencies | |
run: | | |
# Keep in sync with | |
# "Prerequisites" in User's Guide, | |
# ``build-system.requires`` in ``pyproject.toml``. | |
conda install -q setuptools pip wheel build packaging numpy cython bzip2 hdf5 lzo | |
python -m pip install -r requirements.txt | |
# Keep in sync with ``project.optional-dependencies.doc`` in ``pyproject.toml``. | |
# conda install sphinx sphinx_rtd_theme numpydoc ipython | |
- name: Get source distrubtion | |
uses: actions/download-artifact@v3 | |
with: | |
name: tables-sdist | |
- name: Installation | |
run: | | |
python -m pip install -v tables-*.tar.gz | |
- name: 'Run test' | |
run: | | |
cd .. && python -m tables.tests.test_all -v | |
pt2to3 -h | |
ptrepack -h | |
ptdump -h | |
pttree -h | |
build_cblosc: | |
name: Sdist with cblosc2 | |
runs-on: ubuntu-latest | |
needs: sdist | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up Python | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
channels: conda-forge | |
channel-priority: strict | |
- name: Install dependencies | |
run: | | |
# Keep in sync with "Prerequisites" in User's Guide, | |
# ``build-system.requires`` in ``pyproject.toml``. | |
conda install setuptools pip wheel build packaging py-cpuinfo numpy cython numexpr bzip2 hdf5 lzo 'typing_extensions<4.2' c-blosc2 | |
- name: Get source distrubtion | |
uses: actions/download-artifact@v3 | |
with: | |
name: tables-sdist | |
- name: Installation | |
run: | | |
python -m pip install -v tables-*.tar.gz --no-deps | |
- name: Python blosc2 wheel or conda pkg is not installed | |
run: | | |
! conda list | grep -E '^(python-)?blosc2' | |
- name: 'Run test' | |
run: | | |
cd .. && python -m tables.tests.test_all -v | |
pt2to3 -h | |
ptrepack -h | |
ptdump -h | |
pttree -h |