Skip to content

Commit 7a94293

Browse files
committed
refactor: updated github action to use secrets
Signed-off-by: rohansen856 <rohansen856@gmail.com>
1 parent f183d11 commit 7a94293

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ jobs:
9898
run: python -m pip list
9999
- name: Run tests on Ubuntu Test
100100
if: matrix.os == 'ubuntu-latest'
101+
env:
102+
OPENML_TEST_SERVER_ADMIN_KEY: ${{ secrets.OPENML_TEST_SERVER_ADMIN_KEY }}
101103
run: |
102104
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=openml --long --cov-report=xml'; fi
103105
# Most of the time, running only the scikit-learn tests is sufficient
@@ -106,6 +108,8 @@ jobs:
106108
pytest -n 4 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
107109
- name: Run tests on Ubuntu Production
108110
if: matrix.os == 'ubuntu-latest'
111+
env:
112+
OPENML_TEST_SERVER_ADMIN_KEY: ${{ secrets.OPENML_TEST_SERVER_ADMIN_KEY }}
109113
run: |
110114
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=openml --long --cov-report=xml'; fi
111115
# Most of the time, running only the scikit-learn tests is sufficient
@@ -114,6 +118,8 @@ jobs:
114118
pytest -n 4 --durations=20 --dist load -sv $codecov -o log_cli=true -m "$marks"
115119
- name: Run tests on Windows
116120
if: matrix.os == 'windows-latest'
121+
env:
122+
OPENML_TEST_SERVER_ADMIN_KEY: ${{ secrets.OPENML_TEST_SERVER_ADMIN_KEY }}
117123
run: | # we need a separate step because of the bash-specific if-statement in the previous one.
118124
pytest -n 4 --durations=20 --dist load -sv --reruns 5 --reruns-delay 1
119125
- name: Check for files left behind by test

0 commit comments

Comments
 (0)