From 2c386456ad1caaa26dad974b09da0a15f44a2384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Murawski?= Date: Fri, 26 Jan 2024 16:37:55 +0100 Subject: [PATCH] ci: Refactored pipelines --- .github/workflows/pull_request.yml | 14 ++++++++++++++ .github/workflows/{main.yml => release.yml} | 7 ++----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pull_request.yml rename .github/workflows/{main.yml => release.yml} (88%) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..e1b2e60 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,14 @@ +name: Release +on: + pull_request: + types: [opened] +jobs: + test: + name: Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Create venv + run: make venv + - name: Run tests + run: make test diff --git a/.github/workflows/main.yml b/.github/workflows/release.yml similarity index 88% rename from .github/workflows/main.yml rename to .github/workflows/release.yml index 87a0f95..51fba09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,10 @@ -name: Tests +name: Release on: push: branches: [ master ] - pull_request: - branches: [ master ] - workflow_dispatch: jobs: test: - name: "Tests" + name: Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3