From 2311ad9010728987bc9766b4f5fd87f274ea306b Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Tue, 26 Apr 2022 13:01:38 +0000 Subject: [PATCH] fix code.xml --- .github/workflows/code.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 1a47d00..7a29b55 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -83,15 +83,16 @@ jobs: steps: - name: prerequisites - steps: - apt-get update - apt-get install xvfb + run: | + sudo apt-get update + sudo apt-get -y install xvfb pipenv - name: Setup repo and test - steps: - if [ ${{ matrix.pipenv }} == 'deploy' ] ; then edit='-e'; fi - pipenv install ${edit} --dev --${{ matrix.pipenv }} - xvfb pipenv run tests + env: + EDIT: "${{ matrix.pipenv == 'deploy' && '-e' || '' }}" + run: | + pipenv install $EDIT --dev --${{ matrix.pipenv }} + xvfb-run pipenv run tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v2