Skip to content

Commit 54d9d2c

Browse files
committed
test: Dataset operations
1 parent 1a30899 commit 54d9d2c

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/actions/tests/python/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
description: "The version of Python to use, such as 3.9"
1212
required: true
1313
type: string
14+
kaggle-json:
15+
description: "Kaggle JSON credentials for accessing datasets"
16+
required: true
17+
type: string
1418

1519
runs:
1620
using: "composite"
@@ -24,6 +28,17 @@ runs:
2428
run: |
2529
echo '{"subscription_id": "ADD-ME-PLASE", "resource_group": "ubc-cdl10", "workspace_name": "ubc-cdl10"}' > config.json
2630
31+
#--------------------------------------------------------------------------------
32+
# Add kaggle.json for accessing Kaggle datasets
33+
# example: {"username":"lawrencemcdaniel","key":"2f00 --32 characters -- 26a6"}
34+
#--------------------------------------------------------------------------------
35+
- name: Add kaggle.json
36+
shell: bash
37+
run: |
38+
mkdir -p ~/.kaggle
39+
echo "${{ inputs.kaggle-json }}" | base64 --decode > ~/.kaggle/kaggle.json
40+
chmod 600 ~/.kaggle/kaggle.json
41+
2742
- name: Check for azureml-core in requirements
2843
shell: bash
2944
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
uses: ./.github/actions/tests/python
3434
with:
3535
python-version: "${{ env.python-version}}"
36+
kaggle-json: "${{ secrets.KAGGLE_JSON }}"

0 commit comments

Comments
 (0)