-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (66 loc) · 1.67 KB
/
ci.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
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on: [push, pull_request]
jobs:
build:
name: Create distribution files
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Build files
run: |
python -m pip install build
pyproject-build
- name: Upload files
uses: actions/upload-artifact@v3
with:
name: b2h5py-dist
path: |
dist/b2h5py-*.tar.gz
dist/b2h5py-*.whl
test:
name: Run tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Download files
uses: actions/download-artifact@v3
with:
name: b2h5py-dist
- name: Install
run: |
python -m pip install b2h5py-*.whl
- name: Test
run: |
python -m unittest discover b2h5py.tests
h5py-test:
name: Run patched h5py tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Download files
uses: actions/download-artifact@v3
with:
name: b2h5py-dist
- name: Install
run: |
python -m pip install $(echo b2h5py-*.whl)[h5py-test]
- name: Test
run: |
python -m b2h5py.tests.test_patched_h5py