Skip to content

Commit

Permalink
fix(detector): create reset time window (#21)
Browse files Browse the repository at this point in the history
* fix(set_time_window): reset time window to real-time for using any Detector class

* test(time_window): ensure that time window in POTDetetor is modifed after calling the method reset_time_window

* test(src-version): upgrade pkg version to patch v0.1.1

* fix(ci): add token and password

---------

Co-authored-by: N. L <[email protected]>
  • Loading branch information
Aeternalis-Ingenium and ninopleno authored Dec 5, 2023
1 parent c32ad87 commit b31f7a3
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 110 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cd-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ on:
- "v*.*.*"

jobs:
build-distribution:
build-pypi-distribution:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.12]

runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -17,25 +22,20 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
run: python3 -m build .
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
pypi-publish:
name: Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build-distribution
- build-pypi-distribution
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -56,7 +56,7 @@ jobs:
Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
- pypi-publish
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/cd-stg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
- completed

jobs:
build-staging-distribution:
build-testpypi-distribution:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.12]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -34,10 +38,10 @@ jobs:
name: python-package-distributions
path: dist/

publish-to-testpypi:
testpypi-publish:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build-staging-distribution
- build-testpypi-distribution
runs-on: ubuntu-latest
environment:
name: testpypi
Expand All @@ -53,4 +57,6 @@ jobs:
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verbose: true
Loading

0 comments on commit b31f7a3

Please sign in to comment.