Skip to content

Commit

Permalink
ci: increase test sharding to reduce disk usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen committed Oct 2, 2023
1 parent fdf61bd commit 6b42da6
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
fail-fast: false
matrix:
special_features: ["", "lambdaworks-felt"]
target: [ test#1, test#2, test-no_std, test-wasm ]
target: [ test#1, test#2, test#3, test#4, test-no_std, test-wasm ]
name: Run tests
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
case ${NAME} in
'test')
cargo llvm-cov nextest --lcov --output-path lcov-${{ matrix.target }}-${{ matrix.special_features }}.info \
--partition count:${PARTITION}/2 \
--partition count:${PARTITION}/4 \
--workspace --features "cairo-1-hints, test_utils, ${{ matrix.special_features }}"
;;
'test-no_std')
Expand Down Expand Up @@ -417,6 +417,18 @@ jobs:
path: lcov-test#2-.info
key: codecov-cache-test#2--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (part. 3)
uses: actions/cache/restore@v3
with:
path: lcov-test#3-.info
key: codecov-cache-test#3--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (part. 4)
uses: actions/cache/restore@v3
with:
path: lcov-test#4-.info
key: codecov-cache-test#4--${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests without stdlib
uses: actions/cache/restore@v3
with:
Expand All @@ -436,6 +448,18 @@ jobs:
path: lcov-test#2-lambdaworks-felt.info
key: codecov-cache-test#2-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 3)
uses: actions/cache/restore@v3
with:
path: lcov-test#3-lambdaworks-felt.info
key: codecov-cache-test#3-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests with stdlib (w/lambdaworks; part. 4)
uses: actions/cache/restore@v3
with:
path: lcov-test#4-lambdaworks-felt.info
key: codecov-cache-test#4-lambdaworks-felt-${{ github.sha }}
fail-on-cache-miss: true
- name: Fetch results for tests without stdlib (w/lambdaworks)
uses: actions/cache/restore@v3
with:
Expand Down

0 comments on commit 6b42da6

Please sign in to comment.