Skip to content

feat: Organize Rust code into crates and extend Python bindings #3760

feat: Organize Rust code into crates and extend Python bindings

feat: Organize Rust code into crates and extend Python bindings #3760

Workflow file for this run

on:
push:
branches: [main]
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
- ".github/workflows/end-to-end.yml"
pull_request:
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
- ".github/workflows/end-to-end.yml"
name: End-to-End testing
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUST_LOG: info
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: "true"
jobs:
run_tests:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
fail-fast: false
name: Run tests
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v4
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
with:
workspaces: ". -> target-pixi"
key: ${{ hashFiles('pixi.lock') }}
- uses: prefix-dev/[email protected]
# build in release mode so that it's reasonably fast to run the tests
- run: pixi run build-release
- run: pixi run test-ci
- run: pixi run test-end-to-end -v
env:
PREFIX_DEV_READ_ONLY_TOKEN: ${{ secrets.PREFIX_DEV_READ_ONLY_TOKEN }}
ANACONDA_ORG_TEST_TOKEN: ${{ secrets.ANACONDA_ORG_TEST_TOKEN }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_UPLOAD_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_UPLOAD_ACCESS_KEY_SECRET }}