From 8575ce887d85b60839dc2f1573ce5bd9376f315a Mon Sep 17 00:00:00 2001 From: Philip Loche Date: Thu, 5 Dec 2024 19:25:41 +0100 Subject: [PATCH] split build and release jobs --- .github/workflows/build.yml | 22 +++++++++++++++++++ .../{build-release.yml => release.yml} | 5 +---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{build-release.yml => release.yml} (92%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..153fb50b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + # Check all PR + +jobs: + build: + name: tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: python -m pip install tox + - name: Build package + run: tox -e build diff --git a/.github/workflows/build-release.yml b/.github/workflows/release.yml similarity index 92% rename from .github/workflows/build-release.yml rename to .github/workflows/release.yml index 54edea6d..22c51b1e 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,8 @@ -name: Build and Release +name: Release on: push: - branches: [main] tags: ["*"] - pull_request: - # Check all PR jobs: build: