Skip to content

Commit 1fbdbff

Browse files
committed
WIP on running a single pass through service tests
1 parent c7c6165 commit 1fbdbff

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ env:
1717
POETRY_VERSION: "1.8.3"
1818

1919
jobs:
20-
prime-cache:
21-
name: Prime HuggingFace Model Cache
20+
service-tests:
21+
name: Service Tests
2222
runs-on: ubuntu-latest
2323
env:
2424
HF_HOME: ${{ github.workspace }}/hf_cache
@@ -38,10 +38,10 @@ jobs:
3838
mkdir -p ~/.huggingface
3939
echo '{"token":"${{ secrets.HF_TOKEN }}"}' > ~/.huggingface/token
4040
41-
- name: Set up Python 3.9
41+
- name: Set up Python 3.11
4242
uses: actions/setup-python@v4
4343
with:
44-
python-version: 3.9
44+
python-version: 3.11
4545
cache: pip
4646

4747
- name: Install Poetry
@@ -86,7 +86,8 @@ jobs:
8686
strategy:
8787
fail-fast: false
8888
matrix:
89-
python-version: ["3.10", "3.11", 3.12, 3.13]
89+
# 3.11 tests are run in the service-tests job
90+
python-version: ["3.9", "3.10", 3.12, 3.13]
9091
connection: ["hiredis", "plain"]
9192
redis-version: ["6.2.6-v9", "latest", "8.0-M03"]
9293

@@ -137,20 +138,10 @@ jobs:
137138
if: matrix.connection == 'plain' && matrix.redis-version == 'latest'
138139
env:
139140
HF_HOME: ${{ github.workspace }}/hf_cache
140-
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
141141
GCP_LOCATION: ${{ secrets.GCP_LOCATION }}
142142
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
143-
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
144-
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
145-
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}
146-
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
147-
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
148-
AZURE_OPENAI_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_DEPLOYMENT_NAME }}
149-
OPENAI_API_VERSION: ${{ secrets.OPENAI_API_VERSION }}
150-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
151-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
152143
run: |
153-
make test-all
144+
make test
154145
155146
- name: Run tests (alternate)
156147
if: matrix.connection != 'plain' || matrix.redis-version != 'latest'

0 commit comments

Comments
 (0)