Added basic API for Column-level attributes (issue #821) #627
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 | |
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] | |
python: ['3.8', '3.9', '3.10', '3.11'] | |
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: | | |
conda install -q setuptools pip wheel build packaging numpy cython bzip2 hdf5 lzo | |
python -m pip install "blosc2!=2.2.1,!=2.2.2" | |
python -m pip install -r requirements.txt | |
# 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: | | |
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 |