Skip to content

Commit

Permalink
Refactor for reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpops committed Apr 24, 2023
1 parent 928a932 commit e7dcbfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Upload to pypi
name: Run Tests and upload to pypi

on:
push:
branches: [ main ]

jobs:
tests:
uses: ./.github/workflows/test.yaml
pypi-publish:
name: Upload release to PyPI
needs: [tests] # require tests to pass before deploy runs
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -15,13 +18,6 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Wait for tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.action_ref }}
check-name: 'Run Tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Run Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="vault-dump",
version="0.0.1",
version="0.0.2",
author="Daniel Popescu",
author_email="[email protected]",
description="A package to dump the configuration settings for a running hashicorp vault instance",
Expand Down

0 comments on commit e7dcbfd

Please sign in to comment.