forked from kiyo-masui/bitshuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.33 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: bitshuffle-ci-build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
run-tests:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.12"]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install apt dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-serial-dev hdf5-tools pkg-config
- name: Install homebrew dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew update
brew install hdf5 pkg-config
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install h5py
if: ${{ matrix.os == 'macos-latest' }}
run: |
pip install h5py
- name: Install pip dependencies
run: |
pip install Cython
pip install -r requirements.txt
pip install pytest
# Pull in ZSTD repo
git submodule update --init
# Installing the plugin to arbitrary directory to check the install script.
python setup.py install --h5plugin --h5plugin-dir ~/hdf5/lib --zstd
- name: Run tests
run: pytest -v .