-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(detector): create reset time window (#21)
* 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
1 parent
c32ad87
commit b31f7a3
Showing
9 changed files
with
268 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 |
Oops, something went wrong.