forked from KDSource/KDSource
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (43 loc) · 1.15 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
name: kdsource
on:
- push
- pull_request
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {
name: "Ubuntu_Latest",
os: ubuntu-latest,
python-version: 3.9,
}
steps:
- uses: actions/checkout@master
with:
submodules: 'true'
- name: Install and test C API on Ubuntu
if: startsWith(matrix.config.name, 'Ubuntu')
run: |
sudo apt-get update
sudo apt-get install cmake libxml2
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/share/KDSource
make
make test
make install
cd ..
export PATH=$PATH:/usr/share/KDSource/bin
kdtool -h
kdtool resample -h
- name: Set up Python ${{ matrix.config.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version}}
- name: Install tox
run: pip install tox tox-gh-actions
- name: Test with tox
run: tox -r -c python