Skip to content

Commit 4a781db

Browse files
committed
update CI for example.
1 parent 7388076 commit 4a781db

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/comet.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,38 @@ jobs:
1717
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1818

1919
steps:
20-
- uses: actions/checkout@v4
21-
- name: setup-python${{ matrix.python-version }}
20+
- name: Checkout Repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Python ${{ matrix.python-version }}
2224
uses: actions/setup-python@v5
2325
with:
2426
python-version: ${{ matrix.python-version }}
25-
- name: Install (Python)
27+
28+
- name: Install Dependencies
2629
run: |
2730
python -m pip install --upgrade pip
2831
pip install --progress-bar off -U setuptools
2932
pip install git+https://github.com/optuna/optuna.git
30-
python -c 'import optuna'
3133
pip install git+https://github.com/optuna/optuna-integration.git
32-
python -c 'import optuna_integration'
33-
3434
pip install -r comet/requirements.txt
35+
3536
- name: Set API Key
36-
run: echo "COMET_API_KEY=${{ secrets.COMET_API_KEY }}" >> $GITHUB_ENV
37-
- name: Run examples
3837
run: |
39-
python comet/comet_callback.py
38+
echo "COMET_API_KEY=${{ secrets.COMET_API_KEY }}" >> $GITHUB_ENV
39+
40+
- name: Debug API Key
41+
run: |
42+
echo "Checking COMET_API_KEY..."
43+
if [ -z "$COMET_API_KEY" ]; then
44+
echo "❌ COMET_API_KEY is NOT set!"
45+
exit 1
46+
else
47+
echo "✅ COMET_API_KEY is set."
48+
fi
49+
50+
- name: Run Examples
51+
run: python comet/comet_callback.py
4052
env:
4153
OMP_NUM_THREADS: 1
54+
COMET_API_KEY: ${{ secrets.COMET_API_KEY }}

0 commit comments

Comments
 (0)