diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index a625848..0a97ccc 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -9,6 +9,10 @@ env: jobs: tests: name: tests + strategy: + fail-fast: false + matrix: + shard: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] runs-on: ubuntu-latest timeout-minutes: 120 steps: @@ -29,4 +33,4 @@ jobs: - name: Run tests run: | - pytest \ No newline at end of file + pytest --shard-id=${{ matrix.shard }} --num-shards=10 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e90168e..1621ad8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -41,4 +41,5 @@ typing_extensions==4.9.0 urllib3==2.2.2 virtualenv==20.25.0 Jinja2~=3.1.5 -psutil~=7.0.0 \ No newline at end of file +psutil~=7.0.0 +pytest-shard==0.1.2 \ No newline at end of file