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