Skip to content

Commit 83c121e

Browse files
committed
Apply @newpavlov's clean up of tests
1 parent 7eb15d7 commit 83c121e

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Main tests
1+
name: Tests
22

33
on:
44
push:
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
toolchain: nightly
4646
- name: rand_core
47-
run: cargo doc --all-features --no-deps
47+
run: cargo doc --no-deps
4848

4949
test:
5050
runs-on: ${{ matrix.os }}
@@ -92,11 +92,9 @@ jobs:
9292
- run: ${{ matrix.deps }}
9393
- name: Maybe minimal versions
9494
if: ${{ matrix.variant == 'minimal_versions' }}
95-
run: |
96-
cargo generate-lockfile -Z minimal-versions
95+
run: cargo generate-lockfile -Z minimal-versions
9796
- name: Test rand_core
98-
run: |
99-
cargo test --target ${{ matrix.target }}
97+
run: cargo test --target ${{ matrix.target }}
10098

10199
test-cross:
102100
runs-on: ${{ matrix.os }}
@@ -123,9 +121,7 @@ jobs:
123121
- name: Install cross
124122
run: cargo install cross || true
125123
- name: Test
126-
run: |
127-
# all stable features:
128-
cross test --no-fail-fast --target ${{ matrix.target }}
124+
run: cross test --no-fail-fast --target ${{ matrix.target }}
129125

130126
test-miri:
131127
runs-on: ubuntu-latest
@@ -137,8 +133,7 @@ jobs:
137133
rustup override set nightly
138134
cargo miri setup
139135
- name: Test (miri)
140-
run: |
141-
cargo miri test
136+
run: cargo miri test
142137

143138
test-no-std:
144139
runs-on: ubuntu-latest
@@ -149,7 +144,7 @@ jobs:
149144
with:
150145
target: thumbv6m-none-eabi
151146
- name: Build top-level only
152-
run: cargo build --target=thumbv6m-none-eabi --no-default-features
147+
run: cargo build --target=thumbv6m-none-eabi
153148

154149
test-ios:
155150
runs-on: macos-latest

0 commit comments

Comments
 (0)