Skip to content

Commit

Permalink
Fix a few missing components in the ci and change a few of the job names
Browse files Browse the repository at this point in the history
  • Loading branch information
caemor committed Oct 15, 2024
1 parent 6703bd7 commit babd06a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Mosaik API

on:
push:
Expand All @@ -11,7 +11,7 @@ env:

jobs:
build_and_test:
name: Mosaik API - Rust
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -24,6 +24,7 @@ jobs:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Version
run: rustc --version && cargo --version
- run: rustup component add rustfmt
- name: Format
run: cargo fmt --verbose --all -- --check
- name: Build Lib
Expand All @@ -32,7 +33,7 @@ jobs:
run: cargo test --verbose

clippy:
name: Mosaik API Rust Clippy
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -44,11 +45,12 @@ jobs:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Version
run: rustc --version && cargo --version
- run: rustup component add clippy
- name: Clippy (Allowed to fail)
run: cargo clippy --all-targets --all-features -- -D warnings
integration-test:
# Build the python environment as in README and run demo1.py and demo2.py
name: Mosaik API Rust Integration Tests
name: Integration Tests
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -60,8 +62,8 @@ jobs:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Version
run: rustc --version && cargo --version
- name: Install Python
run: apt-get update && apt-get install -y python3 python3-venv python3-pip
# - name: Install Python
# run: apt-get update && apt-get install -y python3 python3-venv python3-pip
- name: Build Examples
run: cargo build --examples --verbose
- name: Create Virtual environment
Expand Down

0 comments on commit babd06a

Please sign in to comment.