-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 994 Bytes
/
fail_kaggle_action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test Kaggle Script Action Failure
on:
pull_request:
jobs:
test_kaggle_action_failure:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Kaggle API credentials
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
run: |
echo "KAGGLE_USERNAME=${KAGGLE_USERNAME}" >> $GITHUB_ENV
echo "KAGGLE_KEY=${KAGGLE_KEY}" >> $GITHUB_ENV
- name: Test Kaggle Script Action Failure
uses: ./
with:
username: ${{ secrets.KAGGLE_USERNAME }}
key: ${{ secrets.KAGGLE_KEY }}
title: "Test Kaggle Script Action Failure"
custom_script: |
python test.py --url "https://jsonplaceholder.typicode.com/nonexistent"
working_subdir: "tests"
enable_internet: true
enable_gpu: true
enable_tpu: false
sleep_time: 10