From 2525ed610c0f6d9cd6b0ff99495e2f1486646d87 Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Fri, 12 Mar 2021 22:35:25 -0500 Subject: [PATCH] Add CI which tests installation of the Python package via pip --- .github/workflows/ci-python.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci-python.yml diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml new file mode 100644 index 0000000..c34c0ee --- /dev/null +++ b/.github/workflows/ci-python.yml @@ -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