Skip to content

Commit 4d06c2b

Browse files
committed
Created parallel CI job for testing the packages, to save overall runtime
1 parent 62a3c75 commit 4d06c2b

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- run: uv run pylint src packages
7676
- run: uv run refurb .
7777
- uses: suzuki-shunsuke/[email protected]
78-
test:
78+
test-src:
7979
runs-on: ubuntu-latest
8080
strategy:
8181
matrix:
@@ -87,7 +87,26 @@ jobs:
8787
enable-cache: true
8888
python-version: ${{ matrix.python-version }}
8989
- run: uv sync
90-
- run: uv run pytest -n auto
90+
- run: uv run pytest -n auto tests
91+
env:
92+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
93+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
94+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
95+
SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }}
96+
CROSSREF_API_KEY: ${{ secrets.CROSSREF_API_KEY }}
97+
test-packages:
98+
runs-on: ubuntu-latest
99+
strategy:
100+
matrix:
101+
python-version: [3.11, 3.13] # Our min and max supported Python versions
102+
steps:
103+
- uses: actions/checkout@v5
104+
- uses: astral-sh/setup-uv@v6
105+
with:
106+
enable-cache: true
107+
python-version: ${{ matrix.python-version }}
108+
- run: uv sync
109+
- run: uv run pytest -n auto packages
91110
env:
92111
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
93112
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)