From 6b2d7c9fc092d9a4f27192617cf73a4537c69c5f Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 20 Nov 2023 10:56:27 +0000 Subject: [PATCH] [20/11/23] Splitting workflow files by language --- .github/workflows/{tests.yml => python.yml} | 18 ++-------------- .github/workflows/rust.yml | 23 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 16 deletions(-) rename .github/workflows/{tests.yml => python.yml} (79%) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/python.yml similarity index 79% rename from .github/workflows/tests.yml rename to .github/workflows/python.yml index 92fa8ad..2ee5ad0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,4 @@ -name: tests +name: Python on: push: @@ -7,11 +7,8 @@ on: permissions: contents: read -env: - CARGO_TERM_COLOR: always - jobs: - python: + build: runs-on: ubuntu-latest @@ -36,14 +33,3 @@ jobs: - name: Test with pytest run: | pytest -v tests - - rust: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..83af3ea --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,23 @@ +name: Rust + +on: + push: + branches: [ "dev" ] + +permissions: + contents: read + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose