From dfde5436a77c145f3a0501e60753fc94a8e9d00f Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:21:42 +0000 Subject: [PATCH 1/2] Try speeding up CI build --- .github/workflows/main.yaml | 61 ++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 34 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 68459413..af8756e4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,8 +11,15 @@ on: permissions: write-all jobs: - tests: - runs-on: ubuntu-20.04 + unit: + runs-on: ubuntu-22.04 + strategy: + matrix: + test: + - utests + - tests-api-mock + - coverage-report + - tests-server steps: - name: Checkout uses: actions/checkout@v4 @@ -28,19 +35,27 @@ jobs: working-directory: bert_e/tests/images - name: Install tox run: pip install tox - - run: tox -e utests - - run: tox -e tests-api-mock - - run: tox -e coverage-report - - run: tox -e tests-server + - run: tox -e ${{ matrix.test }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} slug: ${{ github.repository }} - flags: unittests,server,api-mock + flags: ${{ matrix.test }} - tests-noqueue: - runs-on: ubuntu-20.04 + integration: + strategy: + matrix: + test: + - tests-noqueue + - tests + class: + - BuildFailedTest + - RepositoryTests + - TestBertE + - TestQueueing + - TaskQueueTests + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -53,38 +68,16 @@ jobs: run: pip install -r requirements.txt - name: Install tox run: pip install tox - - run: tox -e tests-noqueue + - run: tox -e ${{ matrix.test }} -- ${{ matrix.class }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} slug: ${{ github.repository }} - flags: tests-noqueue - - all-tests: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' - cache: pip - - name: Install dependencies - run: pip install -r requirements.txt - - name: Install tox - run: pip install tox - - run: tox -e tests - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.5.0 - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: ${{ github.repository }} - flags: all-tests + flags: ${{ matrix.test }}-${{ matrix.class }} lint: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 From 571d78e1bb4e328d17097f66f41a093ac5e1cb46 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:34:29 +0000 Subject: [PATCH 2/2] cov report --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index af8756e4..4aefc32e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,7 +18,6 @@ jobs: test: - utests - tests-api-mock - - coverage-report - tests-server steps: - name: Checkout @@ -36,6 +35,7 @@ jobs: - name: Install tox run: pip install tox - run: tox -e ${{ matrix.test }} + - run: tox -e coverage-report - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.5.0 with: