@@ -106,36 +106,50 @@ jobs:
106106 cd engine
107107 make run-unit-tests
108108
109- # - name: Run e2e tests
110- # if: runner.os != 'Windows' && github.event.pull_request.draft == false
111- # run: |
112- # cd engine
113- # cp build/cortex build/cortex-nightly
114- # cp build/cortex build/cortex-beta
115- # python -m pip install --upgrade pip
116- # python -m pip install pytest
117- # python -m pip install requests
118- # python e2e-test/main.py
119- # rm build/cortex-nightly
120- # rm build/cortex-beta
121- # env:
122- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123-
124-
125- # - name: Run e2e tests
126- # if: runner.os == 'Windows' && github.event.pull_request.draft == false
127- # run: |
128- # cd engine
129- # cp build/cortex.exe build/cortex-nightly.exe
130- # cp build/cortex.exe build/cortex-beta.exe
131- # python -m pip install --upgrade pip
132- # python -m pip install pytest
133- # python -m pip install requests
134- # python e2e-test/main.py
135- # rm build/cortex-nightly.exe
136- # rm build/cortex-beta.exe
137- # env:
138- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109+ - name : Run setup config for macos
110+ if : runner.os == 'macOS'
111+ run : |
112+ cd engine
113+ ./build/cortex --version
114+ sed -i '' 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
115+
116+ - name : Run setup config for linux
117+ if : runner.os != 'macOS'
118+ shell : bash
119+ run : |
120+ cd engine
121+ ./build/cortex --version
122+ sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
123+
124+ - name : Run e2e tests
125+ if : runner.os != 'Windows' && github.event.pull_request.draft == false
126+ run : |
127+ cd engine
128+ cp build/cortex build/cortex-nightly
129+ cp build/cortex build/cortex-beta
130+ python -m pip install --upgrade pip
131+ python -m pip install pytest
132+ python -m pip install requests
133+ python e2e-test/main.py
134+ rm build/cortex-nightly
135+ rm build/cortex-beta
136+ env :
137+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
138+
139+ - name : Run e2e tests
140+ if : runner.os == 'Windows' && github.event.pull_request.draft == false
141+ run : |
142+ cd engine
143+ cp build/cortex.exe build/cortex-nightly.exe
144+ cp build/cortex.exe build/cortex-beta.exe
145+ python -m pip install --upgrade pip
146+ python -m pip install pytest
147+ python -m pip install requests
148+ python e2e-test/main.py
149+ rm build/cortex-nightly.exe
150+ rm build/cortex-beta.exe
151+ env :
152+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
139153
140154 - name : Pre-package
141155 run : |
0 commit comments