-
Notifications
You must be signed in to change notification settings - Fork 4
executable file
·163 lines (160 loc) · 5.47 KB
/
python.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name: Python CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
ubuntu_14:
name: pyslow5 Ubuntu_14
runs-on: ubuntu-20.04
container:
image: ubuntu:14.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3-pip wget && wget --no-check-certificate https://bootstrap.pypa.io/pip/3.4/get-pip.py && python3 get-pip.py && pip3 install setuptools cython "numpy>=1.13.3,<1.15.0" --user
- name: env
run: lsb_release -a && ldd --version && gcc --version && g++ --version && python3 --version
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
ubuntu_16:
name: pyslow5 Ubuntu 16
runs-on: ubuntu-20.04
container:
image: ubuntu:16.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y lsb-release zlib1g-dev python3-pip python3-setuptools && pip3 install cython "numpy>=1.14.5,<1.19.0"
- name: env
run: lsb_release -a && ldd --version && gcc --version && g++ --version && python3 --version
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
pyslow5_ubuntu_18:
name: pyslow5 Ubuntu 18
runs-on: ubuntu-20.04
container:
image: ubuntu:18.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y zlib1g-dev python3-pip && pip3 install setuptools cython numpy
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
ubuntu_20:
name: pyslow5 Ubuntu 20
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3-pip && pip3 install setuptools cython numpy
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
ubuntu_22:
name: pyslow5 Ubuntu 22
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3-pip && pip3 install setuptools cython numpy
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
ubuntu_24:
name: pyslow5 Ubuntu 24
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: sudo apt-get update && sudo apt-get install -y zlib1g-dev python3-pip && pip3 install --break-system-packages setuptools cython numpy
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
arm64:
name: pyslow5 ubuntu arm
runs-on: ubuntu-latest
steps:
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- uses: docker://multiarch/ubuntu-core:arm64-bionic
with:
args: 'uname -a'
- uses: actions/checkout@v1
- uses: docker://multiarch/ubuntu-core:arm64-bionic
with:
args: >
bash -c "apt-get update &&
apt-get install -y zlib1g-dev gcc make python3 python3-pip python3-numpy &&
pip3 install setuptools cython &&
ldd --version && gcc --version && python3 --version &&
make pyslow5 &&
python3 -m unittest -v python/test.py"
# os_x_12:
# name: pyslow5 mac os 12
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v2
# - name: install packages
# run: pip3 install numpy setuptools
# - name: build
# run: make pyslow5
# - name: test
# run: python3 -m unittest -v python/test.py
os_x_13:
name: pyslow5 mac os 13
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- name: install packages
run: pip3 install numpy setuptools
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py
os_x_14:
name: pyslow5 mac os 14
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: install packages
run: pip3 install numpy setuptools --break-system-packages
- name: build
run: make pyslow5
- name: test
run: python3 -m unittest -v python/test.py