From 538da37f397b35c091b71432ef6d174ca19ee871 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Wed, 11 May 2022 11:50:50 +0000 Subject: [PATCH] fix code.yml --- .github/workflows/code.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index a919f8f..a1b1db6 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -95,10 +95,11 @@ jobs: python-version: ${{ matrix.python }} - name: create requirements.txt - if: ${{ matrix.lock == true }} run: | set -x - if [ ! -e requirements.txt ]; then pip install -e . && pip freeze --exclude-editable > requirements.txt; fi + touch requirements.txt + then pip install -e . + pip freeze --exclude-editable > requirements.txt - name: run tests run: | @@ -119,6 +120,7 @@ jobs: files: cov.xml - name: Upload lockfiles + if: ${{ matrix.lock == true }} uses: actions/upload-artifact@v2 with: name: lockfiles