refactor tests directory to root directory #12
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
name: Test training.model_trainer Module with GPU. | |
on: [pull_request] | |
jobs: | |
run_kaggle_script_action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Execute Tests with GPU Support | |
uses: KevKibe/kaggle-script-action@v1.0.3 | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
with: | |
username: ${{ secrets.KAGGLE_USERNAME }} | |
key: ${{ secrets.KAGGLE_KEY }} | |
title: "Test PEFT Finetuning" | |
custom_script: | | |
huggingface-cli login --token ${{ secrets.HF_TOKEN }} && pytest -vv tests/test_model_trainer_gpu.py | |
enable_internet: true | |
enable_gpu: true | |
enable_tpu: false | |
sleep_time: 60 |