Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test kaggle-action workflow #5

Merged
merged 3 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/test-kaggle-action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test Kaggle Script Action

on: [pull_request]
on:
pull_request:

jobs:
test_kaggle_action:
Expand All @@ -16,9 +17,9 @@ jobs:
username: ${{ secrets.KAGGLE_USERNAME }}
key: ${{ secrets.KAGGLE_KEY }}
title: "Test Kaggle Script Action"
custom_script: "python test.py --url "https://jsonplaceholder.typicode.com/posts/1""
custom_script: 'python test.py --url "https://jsonplaceholder.typicode.com/posts/1"'
working_subdir: "tests"
enable_internet: true
enable_gpu: false
enable_gpu: true
enable_tpu: false
sleep_time: 10
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Add `USERNAME` and `TOKEN` to Github Actions Secrets as `KAGGLE_USERNAME` and `K
- **`username`** (required): Kaggle username.
- **`key`** (required): Kaggle API token.
- **`title`** (required): Title of execution run.
- **`working_subdir`** (optional): Subdirectory inside `/kaggle/working/REPO_NAME` where dependencies are installed and the custom script is run. Default" `""` e.g `working_subdir: "src"` will execute commands inside`/kaggle/working/REPO_NAME/src`
- **`custom_script`** (required): Custom script content to execute within the notebook. Default: `print('Success')`.
- **`enable_gpu`** (optional): Enable GPU on the Kaggle kernel. Default: `false`.
- **`enable_tpu`** (optional): Enable TPU on the Kaggle kernel. Default: `false`.
Expand Down
Loading