Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit b788584

Browse files
committed
cope with zero length requirements files
1 parent 26a4268 commit b788584

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/code.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ jobs:
9595
- name: Install with locked dependencies
9696
if: matrix.lock
9797
run: |
98-
touch requirements.txt requirements_dev.txt
98+
echo '# runtime dependencies' > requirements.txt
99+
echo '# developer dependencies' > requirements_dev.txt
100+
# above avoids zero length requirements files
99101
pip install -r requirements.txt -e .
100-
pip freeze --exclude-editable > requirements.txt
102+
pip freeze --exclude-editable >> requirements.txt
101103
pip install -r requirements_dev.txt -e .[dev]
102-
pip freeze --exclude-editable > requirements_dev.txt
104+
pip freeze --exclude-editable >> requirements_dev.txt
103105
104106
- name: Install with latest dependencies
105107
if: ${{ ! matrix.lock }}

0 commit comments

Comments
 (0)