Skip to content

Commit

Permalink
fix a more practical test/build pattern with build only from master b…
Browse files Browse the repository at this point in the history
…ranch and build to testpypi only from testpypi branch. turned off tests for the two branches
  • Loading branch information
BjornFJohansson committed Dec 8, 2023
1 parent 3113d27 commit 8c8746d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pydna_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build for PyPI
name: Build for PyPI from master branch
on:
release:
types: [published]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pydna_test_and_coverage_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
push:
branches:
- '**'
- '!master' # excludes master
- '!master' # excludes master branch
- '!testpypi' # excludes testpypi branch
tags-ignore:
- '*.*'
pull_request: {}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pydna_test_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8c8746d

Please sign in to comment.