diff --git a/.github/workflows/unittests-rust.yml b/.github/workflows/unittests-rust.yml new file mode 100644 index 000000000..9cce3048d --- /dev/null +++ b/.github/workflows/unittests-rust.yml @@ -0,0 +1,15 @@ +name: Rust unit tests + +on: push + +jobs: + test-rust: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install task runner + run: pip install poethepoet + - name: Run Rust unit tests + run: | + poe rtest diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index b118179fc..a21b8531e 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -1,4 +1,4 @@ -name: tests +name: Python unit tests on: push diff --git a/README.md b/README.md index 8344d4cb1..aef72ca2f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@

Tests + Rust tests Docs CodeFactor diff --git a/pyproject.toml b/pyproject.toml index 7404d8711..173e7fc8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,6 +124,12 @@ asv-publish = "asv publish --config benchmarks/asv.conf.json" asv-show = "asv show --config benchmarks/asv.conf.json" asv-clean = { "shell" = "rm -rf benchmarks/env benchmarks/html benchmarks/results" } asv = ["asv-run", "asv-publish", "asv-preview"] +compile = "pip install -e crates/eko/" +rdocs.cmd = "cargo doc --workspace --manifest-path crates/Cargo.toml --no-deps" +rdocs.env = { RUSTDOCFLAGS = "--html-in-header katex-header.html" } +rdocs-view = "xdg-open crates/target/doc/ekors/index.html" +rdocs-clean = "rm -rf crates/target/doc/" +rtest = "cargo test --workspace --manifest-path crates/Cargo.toml" [tool.pytest.ini_options] testpaths = ['tests/', 'benchmarks/'] diff --git a/pyproject.toml.patch b/pyproject.toml.patch index 8e9119a23..f415c7119 100644 --- a/pyproject.toml.patch +++ b/pyproject.toml.patch @@ -25,16 +25,3 @@ index 7404d871..a1e3ae66 100644 [tool.poetry] name = "eko" -@@ -124,6 +138,12 @@ asv-publish = "asv publish --config benchmarks/asv.conf.json" - asv-show = "asv show --config benchmarks/asv.conf.json" - asv-clean = { "shell" = "rm -rf benchmarks/env benchmarks/html benchmarks/results" } - asv = ["asv-run", "asv-publish", "asv-preview"] -+compile = "pip install -e crates/eko/" -+rdocs.cmd = "cargo doc --workspace --manifest-path crates/Cargo.toml --no-deps" -+rdocs.env = { RUSTDOCFLAGS = "--html-in-header katex-header.html" } -+rdocs-view = "xdg-open crates/target/doc/ekors/index.html" -+rdocs-clean = "rm -rf crates/target/doc/" -+rtest = "cargo test --workspace --manifest-path crates/Cargo.toml" - - [tool.pytest.ini_options] - testpaths = ['tests/', 'benchmarks/']