From cd95c6b8e291b0f3bf2b62aebb100ff5010a16a6 Mon Sep 17 00:00:00 2001 From: Timon Pike Date: Fri, 3 Nov 2023 14:58:01 -0700 Subject: [PATCH] change test order --- .github/workflows/unit_tests.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 8995946764..ccc89ecc42 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -20,16 +20,16 @@ jobs: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} steps: -# - name: Increase swapfile -# # Increase ubuntu's swapfile to avoid running out of resources which causes the action to terminate -# if: startsWith(matrix.os, 'ubuntu') -# run: | -# sudo swapoff -a -# sudo fallocate -l 8G /swapfile -# sudo chmod 600 /swapfile -# sudo mkswap /swapfile -# sudo swapon /swapfile -# sudo swapon --show + - name: Increase swapfile + # Increase ubuntu's swapfile to avoid running out of resources which causes the action to terminate + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo swapoff -a + sudo fallocate -l 8G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + sudo swapon --show - uses: actions/checkout@v2 - name: Setup Python id: setup-python @@ -91,8 +91,8 @@ jobs: run: make install-python-ci-dependencies - name: Test Python run: | - pytest -n 8 --cov=./ --cov-report=xml --color=yes sdk/python/tests --ignore=sdk/python/tests/expediagroup pytest -n 1 --cov=./ --cov-report=xml --color=yes sdk/python/tests/expediagroup + pytest -n 8 --cov=./ --cov-report=xml --color=yes sdk/python/tests --ignore=sdk/python/tests/expediagroup unit-test-go: runs-on: ubuntu-latest