Skip to content

Commit

Permalink
add tag 0.2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AVoss84 committed Jan 25, 2025
1 parent 2024268 commit af42b10
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish to PyPI

on:
push:
tags:
- "0.*" # Trigger on version tags like v1.0.0, v2.3.1, etc.

jobs:
build-and-upload:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install build & twine
run: |
python -m pip install --upgrade pip
python -m pip install build twine
# (A) Install your package in editable mode with the "notebook" extras (which includes pytest)
- name: Install package + 'notebook' extras
run: |
python -m pip install -e ".[notebook]"
# (B) Run your tests
- name: Run tests
run: |
pytest --verbose
# (C) Build the package
- name: Build the package
run: python -m build

# (D) Upload to PyPI (only if tests passed)
- name: Upload to PyPI
if: success()
run: |
twine upload dist/*
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to Test PyPI
on:
push:
tags:
- "0.*" # or "v*", "0.*"
- "test-0.*"

jobs:
build-and-upload:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bhad"
version = "0.2.1.4"
version = "0.2.2.0"
description = "Bayesian Histogram-based Anomaly Detection"
requires-python = ">=3.12"

Expand Down

0 comments on commit af42b10

Please sign in to comment.