From 6439325925f32d24bc0bfcc6f1d0ac28e003288d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco=20=28Akiel=29?= Date: Thu, 5 Dec 2024 11:04:28 +0100 Subject: [PATCH 1/3] Remove tests for v6.8 (deprecated) and add them for 7.1 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d6e3a5..18cda52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: fail-fast: false matrix: python-version: [ '3.9', '3.10', '3.11', '3.12' ] - rocket-chat-version: [ '6.8.7','6.9.7','6.10.6','6.11.3','6.12.2', '6.13.0', '7.0.0', 'latest' ] + rocket-chat-version: [ '6.9.7','6.10.6','6.11.3','6.12.2', '6.13.0', '7.0.0', '7.1.0', 'latest' ] steps: - name: Checkout uses: actions/checkout@v4.2.2 From 592f747e965de1769b356c44cabf035e472bc0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco=20=28Akiel=29?= Date: Thu, 5 Dec 2024 11:23:57 +0100 Subject: [PATCH 2/3] Run all tests in the CI instead of failing fast --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18cda52..b1ed2f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: run: until curl --silent http://localhost:3000/api/info/; do sleep 15; echo "waiting for Rocket.Chat server to start"; done; timeout-minutes: 5 - name: Run tests - run: pytest tests rocketchat_API -x --cov-report xml --cov=./ + run: pytest tests rocketchat_API --cov-report xml --cov=./ - name: Upload code coverage uses: codecov/codecov-action@v5 with: From efc0ee25aef9bdf71018ee7c24d0411c9a944470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco=20=28Akiel=29?= Date: Thu, 5 Dec 2024 12:30:34 +0100 Subject: [PATCH 3/3] force colors on pytest --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1ed2f6..4548715 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,8 @@ jobs: timeout-minutes: 5 - name: Run tests run: pytest tests rocketchat_API --cov-report xml --cov=./ + env: + PYTEST_ADDOPTS: "--color=yes" - name: Upload code coverage uses: codecov/codecov-action@v5 with: