Skip to content

Commit

Permalink
ci(rust): pass --locked to builds (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 authored Nov 5, 2024
1 parent 2d3dd67 commit a6053ca
Show file tree
Hide file tree
Showing 5 changed files with 4,466 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ jobs:
- name: Lint Rust
run: |
cargo fmt --all -- --check
cargo clippy --all-features --tests -- -D warnings
cargo clippy --locked --all-features --tests -- -D warnings
- name: Build
run: |
python -m venv venv
source venv/bin/activate
pip install torch tqdm --index-url https://download.pytorch.org/whl/cpu
pip install maturin
maturin develop --extras tests,ray
maturin develop --locked --extras tests,ray
- name: Run doctest
run: |
source venv/bin/activate
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run clippy
run: |
cargo clippy --version
cargo clippy --all-features --tests --benches -- -D warnings
cargo clippy --locked --all-features --tests --benches -- -D warnings
linux-build:
runs-on: "ubuntu-24.04"
timeout-minutes: 45
Expand Down Expand Up @@ -81,9 +81,9 @@ jobs:
- name: Run tests
if: ${{ matrix.toolchain == 'stable' }}
run: |
cargo llvm-cov --workspace --codecov --output-path coverage.codecov --all-features
cargo llvm-cov --locked --workspace --codecov --output-path coverage.codecov --all-features
- name: Build tests (nightly)
run: cargo test --all-features --workspace --no-run
run: cargo test --locked --all-features --workspace --no-run
- name: Run tests (nightly)
if: ${{ matrix.toolchain != 'stable' }}
run: |
Expand Down Expand Up @@ -113,13 +113,13 @@ jobs:
sudo apt install -y protobuf-compiler libssl-dev pkg-config
- name: Build tests
run: |
cargo test --all-features --no-run
cargo test --locked --all-features --no-run
- name: Start DynamoDB local for tests
run: |
docker run -d -e AWS_ACCESS_KEY_ID=DUMMYKEY -e AWS_SECRET_ACCESS_KEY=DUMMYKEY -p 8000:8000 amazon/dynamodb-local
- name: Run tests
run: |
cargo test --all-features
cargo test --locked --all-features
build-no-lock:
runs-on: ubuntu-24.04
timeout-minutes: 30
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
run: |
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build tests
run: cargo test --all-features --no-run
run: cargo test --locked --all-features --no-run
- name: Run tests
run: cargo test --all-features
- name: Check benchmarks
Expand All @@ -188,7 +188,7 @@ jobs:
Add-Content $env:GITHUB_PATH "C:\protoc\bin"
shell: powershell
- name: Build tests
run: cargo test --no-run
run: cargo test --locked --no-run
- name: Run tests
run: cargo test
- name: Check benchmarks
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a6053ca

Please sign in to comment.