From fce2230586422cd72b9683ca2a61453d4db9dc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Stucke?= Date: Thu, 8 Aug 2024 14:45:48 +0200 Subject: [PATCH] added cargo test github action --- .github/workflows/run_cargo_test.yml | 23 +++++++++++++++++++ .../{run_tests.yml => run_pytest.yml} | 0 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/run_cargo_test.yml rename .github/workflows/{run_tests.yml => run_pytest.yml} (100%) diff --git a/.github/workflows/run_cargo_test.yml b/.github/workflows/run_cargo_test.yml new file mode 100644 index 0000000..1593326 --- /dev/null +++ b/.github/workflows/run_cargo_test.yml @@ -0,0 +1,23 @@ +name: Cargo Build & Test + +on: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_pytest.yml similarity index 100% rename from .github/workflows/run_tests.yml rename to .github/workflows/run_pytest.yml