forked from Jacoo-Zhao/AI-Studio-ClearML
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 1.04 KB
/
pipeline.yaml
File metadata and controls
41 lines (31 loc) · 1.04 KB
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
36
37
38
39
40
41
name: Run ClearML Task
on:
pull_request:
branches: [main]
jobs:
run_pipeline:
runs-on: ubuntu-latest
env: # ✅ env: # Global environment variables for all steps
CLEARML_API_ACCESS_KEY: ${{ secrets.CLEARML_API_ACCESS_KEY }}
CLEARML_API_SECRET_KEY: ${{ secrets.CLEARML_API_SECRET_KEY }}
CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Debug ENV
run: |
echo "CLEARML_API_HOST=$CLEARML_API_HOST"
if [ -z "$CLEARML_API_HOST" ]; then echo "❌ HOST is empty!"; exit 1; fi
curl -I $CLEARML_API_HOST
- name: Run pipeline
run: |
# clearml-agent daemon --queue "task" --detached
# python main.py
python s1_dataset_artifact.py