-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from KevKibe/fix-output-log
add test failure workflow
- Loading branch information
Showing
4 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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 | ||
id: kaggle_test | ||
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 | ||
continue-on-error: true | ||
|
||
- name: Verify Workflow Outcome | ||
if: steps.kaggle_test.outcome == 'success' | ||
run: exit 1 | ||
|
||
- name: Verify Workflow Outcome (Negative Case) | ||
if: steps.kaggle_test.outcome == 'failure' | ||
run: exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,15 +49,15 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
test_kaggle_action: | ||
run_unit_tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute Kaggle Script Action | ||
uses: KevKibe/[email protected].1 | ||
uses: KevKibe/[email protected].2 | ||
with: | ||
username: ${{ secrets.KAGGLE_USERNAME }} | ||
key: ${{ secrets.KAGGLE_KEY }} | ||
|
@@ -79,15 +79,15 @@ on: | |
- main | ||
|
||
jobs: | ||
test_kaggle_action: | ||
run_model_training: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Bert Model Training | ||
uses: KevKibe/[email protected].1 | ||
uses: KevKibe/[email protected].2 | ||
with: | ||
username: ${{ secrets.KAGGLE_USERNAME }} | ||
key: ${{ secrets.KAGGLE_KEY }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters