From 8c8746d70602ad9e1cbed1373b5d6a246447cb64 Mon Sep 17 00:00:00 2001 From: BjornFJohansson Date: Fri, 8 Dec 2023 07:43:51 +0000 Subject: [PATCH] fix a more practical test/build pattern with build only from master branch and build to testpypi only from testpypi branch. turned off tests for the two branches --- .github/workflows/pydna_pypi_build_workflow.yml | 2 +- .github/workflows/pydna_test_and_coverage_workflow.yml | 3 ++- .github/workflows/pydna_test_pypi_build_workflow.yml | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pydna_pypi_build_workflow.yml b/.github/workflows/pydna_pypi_build_workflow.yml index 1a596221..8af66c1b 100644 --- a/.github/workflows/pydna_pypi_build_workflow.yml +++ b/.github/workflows/pydna_pypi_build_workflow.yml @@ -1,4 +1,4 @@ -name: Build for PyPI +name: Build for PyPI from master branch on: release: types: [published] diff --git a/.github/workflows/pydna_test_and_coverage_workflow.yml b/.github/workflows/pydna_test_and_coverage_workflow.yml index 32436f89..d9a6d869 100644 --- a/.github/workflows/pydna_test_and_coverage_workflow.yml +++ b/.github/workflows/pydna_test_and_coverage_workflow.yml @@ -3,7 +3,8 @@ on: push: branches: - '**' - - '!master' # excludes master + - '!master' # excludes master branch + - '!testpypi' # excludes testpypi branch tags-ignore: - '*.*' pull_request: {} diff --git a/.github/workflows/pydna_test_pypi_build_workflow.yml b/.github/workflows/pydna_test_pypi_build_workflow.yml index 9da66ff3..338212f8 100644 --- a/.github/workflows/pydna_test_pypi_build_workflow.yml +++ b/.github/workflows/pydna_test_pypi_build_workflow.yml @@ -1,16 +1,16 @@ -name: Build for TESTPyPI +name: Build for TESTPyPI from testpypi branch on: release: types: [published] branches: - - dev_bjorn + - testpypi jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Build and publish to pypi - uses: JRubics/poetry-publish@v1.17 + uses: JRubics/poetry-publish@v1.16 with: pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} repository_name: "testpypi"