diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bdd730c..0999dcf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,9 @@ jobs: strategy: matrix: rust: [stable, 1.61] + services: + postgres: + image: postgres:14 steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -33,6 +36,14 @@ jobs: matrix: bits: [16, 32, 64] runs-on: ubuntu-latest + services: + postgres: + image: postgres:14 + env: + POSTGRES_PASSWORD: '' + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 env: RUST_BACKTRACE: 1 RUSTFLAGS: -D warnings --cfg force_bits="${{ matrix.bits }}$" @@ -51,6 +62,14 @@ jobs: test-x86: name: Test x86 runs-on: ubuntu-latest + services: + postgres: + image: postgres:14 + env: + POSTGRES_PASSWORD: '' + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 env: RUST_BACKTRACE: 1 RUSTFLAGS: -D warnings @@ -72,6 +91,14 @@ jobs: test-x86_64: name: Test x86_64 runs-on: ubuntu-latest + services: + postgres: + image: postgres:14 + env: + POSTGRES_PASSWORD: '' + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 env: RUST_BACKTRACE: 1 RUSTFLAGS: -D warnings diff --git a/float/src/third_party/rand.rs b/float/src/third_party/rand.rs index e1571a6..a5424b3 100644 --- a/float/src/third_party/rand.rs +++ b/float/src/third_party/rand.rs @@ -35,7 +35,7 @@ //! * [Uniform01] will generate floats with the precision decided by the constructor. //! * [Standard], [Open01], [OpenClosed01] will generate floats with the max precision //! such that the significand fits in a [DoubleWord]. -//! * [UniformFBig] (and therefore [Uniform][rand::distributions::Uniform]) will generate floats +//! * [UniformFBig] (and therefore [Uniform][rand_v08::distributions::Uniform]) will generate floats //! the precision being the maximum between the interval boundaries. //! //! The rounding of the [FBig] type doesn't affect the number generation process.