From 9376890df09e4e96e9ccc408f7b527803868ed97 Mon Sep 17 00:00:00 2001 From: Futaki Haduki <812556867@qq.com> Date: Fri, 22 Mar 2024 20:58:36 +0800 Subject: [PATCH 1/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 28bdcaf..86bf982 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # CatFlow +> Part of Analyzer is published here and Tasker is to be open. + [![Python package](https://github.com/Cloudac7/CatFlow/actions/workflows/ci.yml/badge.svg)](https://github.com/Cloudac7/CatFlow/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/Cloudac7/CatFlow/badge.svg?branch=master)](https://coveralls.io/github/Cloudac7/CatFlow?branch=master) From a83062b3444c0163bcea86b69003ce536a4b961c Mon Sep 17 00:00:00 2001 From: Cloudac7 <812556867@qq.com> Date: Mon, 8 Apr 2024 14:07:09 +0800 Subject: [PATCH 2/5] doc: update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eba1d48..6f2a782 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CatFlow -> Part of Analyzer is published here and Tasker is to be open. +> Parts of the code to be open source. [![Python package](https://github.com/Cloudac7/CatFlow/actions/workflows/ci.yml/badge.svg)](https://github.com/Cloudac7/CatFlow/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/Cloudac7/CatFlow/badge.svg?branch=master)](https://coveralls.io/github/Cloudac7/CatFlow?branch=master) @@ -21,7 +21,7 @@ As is known to all, cat is fluid and thus cat flows. 🐱 To install, clone the repository: ``` -git clone https://github.com/cloudac7/catflow.git +git clone https://github.com/chenggroup/catflow.git ``` and then install with `pip`: From 0a1c9630036671fee6fb3019f5fb67fed62cd7d9 Mon Sep 17 00:00:00 2001 From: Cloudac7 <812556867@qq.com> Date: Mon, 8 Apr 2024 14:08:29 +0800 Subject: [PATCH 3/5] test: add tests for python 3.12 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93090c3..a1fe5b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] poetry-version: ["1.3.0"] steps: From 4d181465d7972898033a3c5364d4a9727f71184d Mon Sep 17 00:00:00 2001 From: Cloudac7 <812556867@qq.com> Date: Mon, 8 Apr 2024 14:15:14 +0800 Subject: [PATCH 4/5] Revert "test: add tests for python 3.12" This reverts commit 0a1c9630036671fee6fb3019f5fb67fed62cd7d9. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1fe5b7..93090c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11'] poetry-version: ["1.3.0"] steps: From cfb790f14ab2dc16fcb8ba3966cb7a6899d3eeca Mon Sep 17 00:00:00 2001 From: Cloudac7 <812556867@qq.com> Date: Mon, 8 Apr 2024 14:21:09 +0800 Subject: [PATCH 5/5] chore: add prerelease builds --- .github/workflows/deploy_docs.yml | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/deploy_docs.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml new file mode 100644 index 0000000..27ee376 --- /dev/null +++ b/.github/workflows/deploy_docs.yml @@ -0,0 +1,24 @@ +name: deploy_docs +on: + push: + branches: + - 'master' + paths: + - docs/** + - README.md + - mkdocs.yml + - catflow/** + - .github/workflows/deploy_docs.yml +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + - uses: abatilo/actions-poetry@v2.0.0 + with: + poetry-version: '1.3.0' + - run: poetry install --no-interaction --without test + - run: poetry run mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f454aca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Build and publish python package + +on: + release: + types: [ published ] + +jobs: + publish-service-client-package: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11'] + steps: + - uses: actions/checkout@v2 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.16 + with: + python_version: ${{ matrix.python-version }} + poetry_version: "==1.3.0" + pypi_token: ${{ secrets.PYPI_API_TOKEN }} + plugins: "poetry-dynamic-versioning-plugin" \ No newline at end of file