Skip to content

Commit

Permalink
build(semantic):
Browse files Browse the repository at this point in the history
Testing sematic release
  • Loading branch information
tengzl33t committed Sep 13, 2023
1 parent 473cf60 commit 2327bfe
Show file tree
Hide file tree
Showing 5 changed files with 516 additions and 22 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,29 @@ permissions:
packages: write

jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Repo checkout
# uses: actions/checkout@v3
#
# - name: Prepare environment
# uses: "./.github/actions/environment"
#
# - name: Running pytest
# run: poetry run pytest
test:
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v3

- name: Prepare environment
uses: "./.github/actions/environment"

- name: Running pytest
run: poetry run pytest
env:
TX_API_PROD_KEY: ${{ secrets.TX_API_PROD_KEY }}
TX_API_POD_KEY: ${{ secrets.TX_API_POD_KEY }}

build_linux:
# needs: test
needs: test
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Prepare environment
uses: "./.github/actions/environment"
Expand All @@ -41,8 +46,13 @@ jobs:
shell: bash
run: poetry build --format wheel

- name: Upload wheel package
uses: actions/upload-artifact@v3
with:
name: Python Wheel
path: ./dist/*.whl
# - name: Upload wheel package
# uses: actions/upload-artifact@v3
# with:
# name: Python Wheel
# path: ./dist/*.whl

- name: Python Semantic Release
run: poetry run semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 2327bfe

Please sign in to comment.