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

Commit e37708e

Browse files
committed
improve container_tests
1 parent f567011 commit e37708e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/container_tests.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
set -x
33

44
cd /project
5-
6-
python -m venv /tmp/venv
7-
source /tmp/venv/bin/activate
5+
source /venv/bin/activate
86

97
touch requirements_dev.txt
108
pip install -r requirements_dev.txt -e .[dev]
119
pip freeze --exclude-editable > requirements_dev.txt
1210

1311
pipdeptree
1412

15-
# ensure non-zero length requirements.txt
16-
echo "# runtime dependencies" >> requirements.txt
17-
1813
pytest tests

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ RUN cd /project && \
3232
pip install -r requirements.txt dist/*.whl && \
3333
pip freeze > requirements.txt && \
3434
# we don't want to include our own wheel in requirements - remove with sed
35-
sed -i '/file:\/\//d' requirements.txt
35+
# and replace with a comment to avoid a zero length asset upload later
36+
sed -i '/file:/s/^/# Requirements for /' requirements.txt
3637

3738
FROM python:3.10-slim as runtime
3839

0 commit comments

Comments
 (0)