Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move ks #1525

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Move ks #1525

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/distr_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: distr_test

on:
pull_request:
paths:
- ".github/workflows/distr_test.yml"
- "distr_test/**"

jobs:
distr_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./distr_test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy, rustfmt
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ jobs:
- uses: actions/checkout@v4
- name: MSRV
if: ${{ matrix.variant == 'MSRV' }}
run: cp Cargo.lock.msrv Cargo.lock
run: |
cp Cargo.lock.msrv Cargo.lock
cp distr_test/Cargo.lock.msrv distr_test/Cargo.lock
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
Expand Down Expand Up @@ -106,6 +108,7 @@ jobs:
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --no-default-features
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --no-default-features --features=std,std_math
cargo test --target ${{ matrix.target }} --manifest-path distr_test/Cargo.toml --release
- name: Test rand_pcg
run: cargo test --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde
- name: Test rand_chacha
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ members = [
"rand_chacha",
"rand_pcg",
]
exclude = ["benches"]
exclude = ["benches", "distr_test"]

[dependencies]
rand_core = { path = "rand_core", version = "=0.9.0-alpha.1", default-features = false }
Expand Down
Loading