-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from promised-ai/release/0.5.0
WIP 0.5.0 release candidate
- Loading branch information
Showing
80 changed files
with
12,402 additions
and
4,402 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,143 @@ | ||
name: 'CLI: Build and Test' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- 'cli/**' | ||
- 'lace/**' | ||
- '.github/workflows/cli-build-test.yaml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
features: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: . -> cli/target | ||
|
||
- name: Install dependencies | ||
run: cargo install cargo-hack | ||
|
||
- name: Run cargo check on all features | ||
working-directory: cli | ||
run: cargo hack check --each-feature --all-targets | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: cli | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: . -> cli/target | ||
|
||
- name: Run rustfmt | ||
working-directory: cli | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Run clippy | ||
working-directory: cli | ||
env: | ||
RUSTFLAGS: -C debuginfo=0 | ||
run: | | ||
cargo clippy --all-features | ||
- name: Install audit | ||
run: cargo install cargo-audit | ||
|
||
- name: Run audit | ||
working-directory: cli | ||
# Note: Both `polars` and `arrow2` trigger this security violation | ||
# due to their reliance on `chrono`, which is the ultimate source of the violation | ||
# as of 2/21/23, no version of `chrono` has been published that fixes the issue | ||
# and thus neither `polars` or `arrow2` can pass `audit` checks | ||
run: cargo audit -f Cargo.lock --ignore RUSTSEC-2020-0071 | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
needs: ["lint", "features"] | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
defaults: | ||
run: | ||
working-directory: cli | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: . -> cli/target | ||
|
||
- name: Regen Examples | ||
env: | ||
RUSTFLAGS: -C debuginfo=0 | ||
run: cargo run -- regen-examples | ||
|
||
- name: Run tests | ||
env: | ||
RUSTFLAGS: -C debuginfo=0 | ||
run: cargo test | ||
|
||
# semver-checks: | ||
# runs-on: ubuntu-latest | ||
# needs: ["features", "lint", "test"] | ||
# steps: | ||
# - name: Checkout branch | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# path: branch | ||
|
||
# - name: Checkout master | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# ref: master | ||
# path: master | ||
|
||
# - name: Set up Rust | ||
# uses: dtolnay/rust-toolchain@stable | ||
|
||
# - name: Cache Rust | ||
# uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# workspaces: . -> lace/target | ||
|
||
# - name: Install extra cargo tools | ||
# run: cargo install cargo-semver-checks --locked | ||
|
||
# - name: Check for semver-incompatibilities | ||
# run: cargo semver-checks check-release --manifest-path branch/lace/Cargo.toml --baseline-root master/lace --verbose |
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ Pipfile | |
pybraid/.github | ||
*.ini | ||
.vscode/ | ||
.helix |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This CITATION.cff file was generated with cffinit. | ||
# Visit https://bit.ly/cffinit to generate yours today! | ||
|
||
cff-version: 1.2.0 | ||
title: 'Lace: Bayesian Tabular Analysis for Scientific Discovery' | ||
message: >- | ||
If you use this software, please cite it using the | ||
metadata from this file. | ||
type: software | ||
authors: | ||
- given-names: Baxter | ||
family-names: Eaves | ||
name-suffix: Jr | ||
email: [email protected] | ||
affiliation: Redpoll | ||
- given-names: Michael | ||
family-names: Schmidt | ||
email: [email protected] | ||
affiliation: Redpoll | ||
- given-names: Ken | ||
family-names: Swanson | ||
email: [email protected] | ||
affiliation: Redpoll | ||
identifiers: | ||
- type: url | ||
value: 'https://github.com/promised-ai/lace' | ||
description: Github repository | ||
repository-code: 'https://github.com/promised-ai/lace' | ||
url: 'https://lace.dev' | ||
abstract: >- | ||
Lace is a probabilistic cross-categorization engine | ||
written in rust. | ||
keywords: | ||
- Bayesian | ||
- Machine Learning | ||
license: BSL-1.1 | ||
version: 0.5.0 | ||
date-released: '2023-11-17' |
Oops, something went wrong.