From 8a9433a172c9f65595dd3eb5c8f42e6d274e4c31 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Wed, 24 Jul 2024 22:39:00 +0300 Subject: [PATCH] ci: download sample for validation --- .github/workflows/validate-model.yaml | 3 +++ src/download_sample.py | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/download_sample.py diff --git a/.github/workflows/validate-model.yaml b/.github/workflows/validate-model.yaml index 24b619b..c3d6d2d 100644 --- a/.github/workflows/validate-model.yaml +++ b/.github/workflows/validate-model.yaml @@ -54,5 +54,8 @@ jobs: #---------------------------------------------- # Run Giskard validation for champion model #---------------------------------------------- + - name: Download sample data + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: poetry run python3 -m src.download_sample - name: Validate champion model run: poetry run mlflow run . --env-manager=local -e validate diff --git a/src/download_sample.py b/src/download_sample.py new file mode 100644 index 0000000..9ead1e8 --- /dev/null +++ b/src/download_sample.py @@ -0,0 +1,8 @@ +import gdown + +gdown.download( + "https://drive.google.com/uc?id=1OrOPS0GDsFno3FzukmOqPzETFsDYbiiU", + "data/samples/sample.csv", + quiet=False, + use_cookies=False, +)