From 519078e11c7347d1746f6cb89341b5f14201bf26 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Sun, 1 Dec 2024 10:58:17 +0100 Subject: [PATCH] properly run e2e tests --- .github/workflows/test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cbc9f1d..336bdcd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,14 @@ jobs: run: hatch run lint:all - name: Run tests - run: hatch run cov + run: hatch run cov -m"not e2e" + + - if: matrix.python-version == '3.12' + name: End-to-end + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + run: hatch run test -m"e2e" - if: matrix.python-version == '3.12' name: Report Coveralls @@ -79,7 +86,7 @@ jobs: run: pip install --upgrade hatch - name: Run tests - run: hatch run test + run: hatch run test -m"not e2e" windows: name: Python ${{ matrix.python-version }} on Windows @@ -102,4 +109,4 @@ jobs: run: pip install --upgrade hatch - name: Run tests - run: hatch run test + run: hatch run test -m"not e2e"