From 94a8bc88a4ee4b7474e5f42d7430f6a4c09df753 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Wed, 24 Aug 2022 10:27:52 +0200 Subject: [PATCH] GHA: Add pip install test --- .../{rpmbuild.yaml => build-install.yaml} | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) rename .github/workflows/{rpmbuild.yaml => build-install.yaml} (83%) diff --git a/.github/workflows/rpmbuild.yaml b/.github/workflows/build-install.yaml similarity index 83% rename from .github/workflows/rpmbuild.yaml rename to .github/workflows/build-install.yaml index ecbef030..fc6024fa 100644 --- a/.github/workflows/rpmbuild.yaml +++ b/.github/workflows/build-install.yaml @@ -1,4 +1,4 @@ -name: 'rpmbuild test' +name: 'build and installation tests' on: push: @@ -19,7 +19,7 @@ on: - 'doc/**' jobs: - test: + rpmbuild: name: 'rpmbuild test' runs-on: 'ubuntu-latest' strategy: @@ -84,3 +84,22 @@ jobs: git fetch upstream --tags --force ./contrib/build_rpm.py --srpm --rpm + + pip: + name: 'pip install test' + runs-on: 'ubuntu-latest' + strategy: + fail-fast: false + + steps: + - name: 'Install packages' + run: | + sudo apt-get -y update + sudo apt-get -y upgrade + sudo apt-get -y --no-install-recommends install git python3-pip python3-rpm + + - uses: actions/checkout@v3 + + - name: 'Install osc from pip' + run: | + pip3 install .