Skip to content

Commit

Permalink
Rust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo committed Nov 6, 2024
1 parent 62ae1d5 commit fb52ae4
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ jobs:
cmd: pytest tests --cov=armonik --cov-config=.coveragerc --cov-report=term-missing --cov-append --cov-report xml:coverage.xml --cov-report html:coverage_report
dir: python
env: {}
- lang: Rust
toolchain: stable
cmd: cargo test --locked
dir: rust/armonik
env: {}
- lang: Rust
toolchain: nightly
cmd: cargo test --locked
dir: rust/armonik
env: {}
plateform:
- os: ubuntu-latest
- os: windows-latest
Expand All @@ -78,6 +88,10 @@ jobs:
lang: Python
plateform:
os: windows-2019
- language:
lang: Rust
plateform:
os: windows-2019
- language:
lang: C#
dotnet: ''
Expand Down Expand Up @@ -123,18 +137,36 @@ jobs:
run: |
echo "Current language: ${{ matrix.language.lang }}"
# Prepare Python
- name: pip update and add build package
if: ${{ matrix.language.lang == 'Python' }}
working-directory: packages/python
run: bash proto2python.sh ~/pyvenv

- name: Install python dependencies
if: ${{ matrix.language.lang == 'Python' }}
working-directory: packages/python
run: |
pwd
pip install "$(echo pkg/armonik*.whl)[tests]"
# Prepare Rust
- uses: taiki-e/install-action@v2
if: ${{ matrix.language.lang == 'Rust' }}
with:
tool: protoc,sccache
- name: Install Rust toolchain
if: ${{ matrix.language.lang == 'Rust' }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.language.toolchain }}
components: rust-src,rust-docs,rustfmt${{contains(matrix.language.toolchain, 'nightly') && ',clippy' || ''}}
- name: Build Rust package
if: ${{ matrix.language.lang == 'Rust' }}
working-directory: packages/rust/armonik
run: |
cargo build --locked --tests
# Prepare C++
- name: Build C++ package
if: ${{ matrix.language.lang == 'C++' }}
working-directory: packages/cpp
Expand All @@ -148,6 +180,7 @@ jobs:
dotnet publish -o ../out
[ -e ../out/ArmoniK.Api.Mock.exe ] || ln -s ArmoniK.Api.Mock ../out/ArmoniK.Api.Mock.exe
# Run tests
- name: noTLS
working-directory: packages/csharp/
shell: bash
Expand Down

0 comments on commit fb52ae4

Please sign in to comment.