Skip to content

Commit

Permalink
pre-release and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShriekinNinja committed Mar 30, 2023
1 parent 6c4f22a commit c70ae23
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
17 changes: 5 additions & 12 deletions .github/actions/py-env-action/action.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: "Python Environment Setup"

name: "Action: Python Environment Setup"
description: ""
inputs:
pythen-version:
description: "Python version"
description: "Python Version"
required: true
default: "3.9"
poetry-version:
description: "poetry version"
description: "Poetry Version"
required: true
default: "1.4"
poetry-token:
required: true
default: ""
install-dependencies:
description: "Should install deps"
required: true
default: "true"
dependencies-root:
Expand Down Expand Up @@ -46,8 +44,3 @@ runs:
cd ${{ env.CWD }}
poetry install
- name: Set Potry publish token
shell: bash
if: ${{ inputs.poetry-token != '' }}
run: poetry poetry config pypi-token.pypi ${{ inputs.poetry-token }}

9 changes: 5 additions & 4 deletions .github/workflows/cd-py.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/deploy-start-action
id: deployment
with:
package-name: ${{ env.PACKAGE_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

- uses: ./.github/actions/ts-env-action

- uses: ./.github/actions/py-env-action
with:
token: ${{ secrets.PY_TOKEN }}

# ----------
- name: Bump package version
run: |
Expand All @@ -37,9 +39,8 @@ jobs:
- name: Publish to pypi
run: |
cd ${{ env.CWD }}
poetry poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# ----------

- uses: ./.github/actions/deploy-end-action
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-py-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI Python Tests"
name: "CI: Python Tests"
on:
pull_request:
branches:
Expand All @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/py-env-action

- name: Run Tests
run: cd ${{ env.CWD }} && poetry run pytest
3 changes: 2 additions & 1 deletion py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ keywords = [
classifiers = [
"Development Status :: 3 - Alpha", # Development Status :: 5 - Production/Stable after CR
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development"
]
packages = [{ include = "configu" }]
Expand Down

0 comments on commit c70ae23

Please sign in to comment.