Update ci.yml #25
Workflow file for this run
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: 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 |