FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CI: run cargo with `--locked` by ShaharNaveh · Pull Request #8607 · RustPython/RustPython · GitHub

Repository navigation

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

Filter by extension

Filter by extension .yaml  (1) .yml  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,20 @@ jobs:
uses: ./.github/actions/install-macos-deps

- name: run rust tests
run: cargo test --workspace --exclude rustpython-capi ${{ env.WORKSPACE_EXCLUDES }} --features threading ${{ env.CARGO_ARGS }}
run: cargo test --locked --workspace --exclude rustpython-capi ${{ env.WORKSPACE_EXCLUDES }} --features threading ${{ env.CARGO_ARGS }}
env:
INSTA_WORKSPACE_ROOT: ${{ github.workspace }}

- name: run c-api tests
working-directory: crates/capi
run: cargo test
run: cargo test --locked
if: runner.os != 'Windows' # Requires pyo3 0.29+ on Windows

- name: check compilation without host_env (sandbox mode)
run: |
cargo check -p rustpython-vm --no-default-features --features compiler
cargo check -p rustpython-stdlib --no-default-features --features compiler
cargo build --no-default-features --features stdlib,importlib,stdio,encodings,freeze-stdlib
cargo check --locked -p rustpython-vm --no-default-features --features compiler
cargo check --locked -p rustpython-stdlib --no-default-features --features compiler
cargo build --locked --no-default-features --features stdlib,importlib,stdio,encodings,freeze-stdlib
if: runner.os == 'Linux'

- name: sandbox smoke test
Expand All @@ -140,11 +140,11 @@ jobs:
if: runner.os == 'Linux'

- name: Test openssl build
run: cargo build --no-default-features --features ssl-openssl
run: cargo build --locked --no-default-features --features ssl-openssl
if: runner.os == 'Linux'

- name: Test vendored OpenSSL build
run: cargo build --no-default-features --features ssl-openssl-vendor
run: cargo build --locked --no-default-features --features ssl-openssl-vendor
if: runner.os == 'Linux'

# - name: Install tk-dev for tkinter build
Expand All @@ -162,7 +162,7 @@ jobs:
if: runner.os == 'Linux'

- name: run update_lib tests
run: cargo run -- -m unittest discover -s scripts/update_lib/tests -v
run: cargo run --locked -- -m unittest discover -s scripts/update_lib/tests -v
env:
PYTHONPATH: scripts
if: runner.os == 'Linux'
Expand Down Expand Up @@ -280,11 +280,11 @@ jobs:
# args: --ignore-rust-version

- name: Check compilation with threading
run: cargo check --target "${{ matrix.target }}" ${{ env.CARGO_ARGS_NO_SSL }} --features threading
run: cargo check --locked --target "${{ matrix.target }}" ${{ env.CARGO_ARGS_NO_SSL }} --features threading

- name: Check compilation with ssl
if: ${{ !matrix.skip_ssl }}
run: cargo check --target "${{ matrix.target }}" ${{ env.CARGO_ARGS }}
run: cargo check --locked --target "${{ matrix.target }}" ${{ env.CARGO_ARGS }}

snippets_cpython:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }}
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:

# Keep features in sync with update-caches.yml CARGO_ARGS.
- name: build rustpython
run: cargo build --release --verbose --features=threading,jit ${{ env.CARGO_ARGS }}
run: cargo build --locked --release --verbose --features=threading,jit ${{ env.CARGO_ARGS }}

- name: run snippets
run: python -m pip install -r requirements.txt && pytest -v
Expand Down Expand Up @@ -516,7 +516,7 @@ jobs:
continue-on-error: true

- name: Clippy
run: cargo clippy --keep-going ${{ env.CARGO_ARGS }} --workspace --all-targets ${{ env.WORKSPACE_EXCLUDES }} -- -Dwarnings
run: cargo clippy --locked --keep-going ${{ env.CARGO_ARGS }} --workspace --all-targets ${{ env.WORKSPACE_EXCLUDES }} -- -Dwarnings

cargo_shear:
name: cargo shear
Expand All @@ -540,7 +540,7 @@ jobs:
- name: cargo shear
run: |
cargo binstall --no-confirm cargo-shear
cargo shear
cargo shear --locked

lint:
name: Lint
Expand Down Expand Up @@ -653,7 +653,7 @@ jobs:
${{ runner.os }}-

- name: Run tests under miri
run: cargo +${{ env.NIGHTLY_CHANNEL }} miri test -p rustpython-vm -- miri_test
run: cargo +${{ env.NIGHTLY_CHANNEL }} miri test --locked -p rustpython-vm -- miri_test
env:
# miri-ignore-leaks because the type-object circular reference means that there will always be
# a memory leak, at least until we have proper cyclic gc
Expand Down Expand Up @@ -692,7 +692,7 @@ jobs:
${{ runner.os }}-

- name: cargo clippy
run: cargo clippy --keep-going --manifest-path=crates/wasm/Cargo.toml -- -Dwarnings
run: cargo --locked clippy --keep-going --manifest-path=crates/wasm/Cargo.toml -- -Dwarnings

- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Expand Down Expand Up @@ -816,7 +816,7 @@ jobs:
clang: true

- name: build rustpython
run: cargo build --profile wasm-release --target wasm32-wasip1 --no-default-features --features freeze-stdlib,stdlib,stdio,importlib,host_env --verbose
run: cargo build --locked --profile wasm-release --target wasm32-wasip1 --no-default-features --features freeze-stdlib,stdlib,stdio,importlib,host_env --verbose
- name: run snippets
run: |
wasmer run --volume "$(pwd)" target/wasm32-wasip1/wasm-release/rustpython.wasm -- "$(pwd)/extra_tests/snippets/stdlib_random.py"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-caches.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
openssl: true

- name: Build dev cache # dev profile used by check & doc
run: cargo build --profile dev ${{ env.CARGO_ARGS }}
run: cargo build --locked --profile dev ${{ env.CARGO_ARGS }}

- name: Build test cache
run: cargo build --profile test ${{ env.CARGO_ARGS }}
run: cargo build --locked --profile test ${{ env.CARGO_ARGS }}

- name: Build release cache
run: cargo build --profile release ${{ env.CARGO_ARGS }}
run: cargo build --locked --profile release ${{ env.CARGO_ARGS }}

- name: Save cache
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand Down
Loading

Back | FazBrowse Home | New Git URL