Skip to content

Commit

Permalink
only run Publishing workflow on tag pushes; move generic build and pa…
Browse files Browse the repository at this point in the history
…ckage validation to pytest-fast
  • Loading branch information
aaronsteers committed Dec 4, 2024
1 parent a975e06 commit 0c69e9e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ name: Packaging and Publishing

on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/pytest_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ on:
pull_request:

jobs:
test-build:
name: Build and Inspect Python Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: hynek/build-and-inspect-python-package@v2
env:
# Pass in dummy version '0.0.0dev0' version to appease dynamic versioning
POETRY_DYNAMIC_VERSIONING_BYPASS: 0.0.0dev0

- uses: actions/upload-artifact@v4
with:
name: Packages-${{ github.run_id }}
path: |
/tmp/baipp/dist/*.whl
/tmp/baipp/dist/*.tar.gz
pytest-fast:
name: Pytest (Fast)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0c69e9e

Please sign in to comment.