Add CI which tests installation of the Python package via pip

This commit is contained in:
Daniel Alley 2021-03-12 22:35:25 -05:00 committed by Lukáš Hrázký
parent b2589e0aa7
commit 2525ed610c
1 changed files with 27 additions and 0 deletions

27
.github/workflows/ci-python.yml vendored Normal file
View File

@ -0,0 +1,27 @@
---
name: Python CI
on: pull_request
jobs:
python-build:
name: Python Build
runs-on: ubuntu-latest
container: fedora:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo dnf -y install dnf-plugins-core
sudo dnf -y builddep libcomps.spec
pip install --upgrade pip
pip install pytest
- name: Compile and Install
run: pip install --user .
- name: Test
run: |
pushd libcomps/src/python/tests/
pytest --verbose --color=yes ./
popd