diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12feca2..42aa3e6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,8 @@ jobs: toolchain: 1.76.0 - name: Run tests (with coverage) run: make test-cover + env: + MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} - name: Upload tests coverage uses: codecov/codecov-action@v3 with: diff --git a/tests/v1_chat_completion_test.rs b/tests/v1_chat_completion_test.rs index 72d09fd..302e5e8 100644 --- a/tests/v1_chat_completion_test.rs +++ b/tests/v1_chat_completion_test.rs @@ -9,7 +9,7 @@ use mistralai_client::v1::{ }; #[test] -fn test_client_new() { +fn test_chat_completion() { extern crate dotenv; use dotenv::dotenv;