Skip to content

Commit 7de3a9a

Browse files
authored
Merge pull request #52 from eyra/ensure-gh-check-fails-on-error
Ensure gh check fails on error
2 parents bea62a9 + 3053bea commit 7de3a9a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
- name: Run prediction
4242
run: docker run --rm -v "$(pwd)/.:/data" eyra-rank:latest /data/PreFer_fake_data.csv /data/PreFer_fake_background_data.csv --output /data/predictions.csv
4343

44+
- name: Check if file exists
45+
run: |
46+
if [ ! -f "predictions.csv" ]; then
47+
echo "Predictions file not found. Please check the logs to see what went wrong."
48+
exit 1
49+
fi
50+
4451
- name: Build Docker scoring image
4552
uses: docker/build-push-action@v4
4653
with:

python.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ COPY *.py /app
1111
COPY *.joblib /app
1212

1313
ENTRYPOINT ["conda", "run", "-n", "eyra-rank", "python", "/app/run.py"]
14-
CMD ["predict", "/data/fake_data.csv"]
14+
CMD []

0 commit comments

Comments
 (0)