Skip to content

Commit

Permalink
fix code.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 11, 2022
1 parent 99ede4c commit 538da37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -119,6 +120,7 @@ jobs:
files: cov.xml

- name: Upload lockfiles
if: ${{ matrix.lock == true }}
uses: actions/upload-artifact@v2
with:
name: lockfiles
Expand Down

0 comments on commit 538da37

Please sign in to comment.