Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs
This commit is contained in:
+49
@@ -0,0 +1,49 @@
|
||||
name: Run Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
cargo-test:
|
||||
name: Cargo Test
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: rust:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all --locked --exclude asic-rs-pydantic --exclude asic-rs-pydantic-macros
|
||||
|
||||
python-test:
|
||||
name: Python Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Set up Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Create Python environment
|
||||
run: python -m venv .venv
|
||||
|
||||
- name: Install maturin
|
||||
run: .venv/bin/python -m pip install --upgrade pip maturin
|
||||
|
||||
- name: Build and install package with test dependencies
|
||||
run: VIRTUAL_ENV="$PWD/.venv" .venv/bin/maturin develop --features python --extras test
|
||||
|
||||
- name: Run Python tests
|
||||
run: .venv/bin/python -m pytest python/tests
|
||||
Reference in New Issue
Block a user