From 0af242debf7180cc04a3529a26472a71aeabf8e2 Mon Sep 17 00:00:00 2001 From: ddc Date: Sat, 19 Jul 2025 20:45:52 -0300 Subject: [PATCH 1/3] V4.0.1 --- .github/workflows/tests.yml | 43 ++++++++++++++++++++++++++++++++++ .github/workflows/workflow.yml | 7 ++---- 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100755 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100755 index 0000000..6a1fb42 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,43 @@ +name: Run Tests + +on: + push: + branches: + - "**" # including all branches before excluding master + - "!master" + - "!main" + +jobs: + tests: + name: Test Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Install dependencies + run: poetry install --with test --no-interaction --no-ansi + + - name: Run tests with coverage + run: poetry run poe tests + + - name: Upload coverage reports to Codecov + if: matrix.python-version == '3.13' + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: ddc/pythonLogs diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a64b7af..deb738f 100755 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -3,9 +3,6 @@ name: CI/CD Pipeline on: push: branches: [main, master] - tags: ['v*'] - pull_request: - branches: [main, master] jobs: @@ -82,7 +79,7 @@ jobs: name: Create Release runs-on: ubuntu-latest needs: build - if: startsWith(github.ref, 'refs/tags/v') + #if: startsWith(github.ref, 'refs/tags/v') permissions: contents: write steps: @@ -110,7 +107,7 @@ jobs: name: Publish to PyPI runs-on: ubuntu-latest needs: release - if: startsWith(github.ref, 'refs/tags/v') + #if: startsWith(github.ref, 'refs/tags/v') environment: release permissions: id-token: write From 8509b2e7d08d58067262bfd9eba44695c42352f9 Mon Sep 17 00:00:00 2001 From: ddc Date: Sat, 19 Jul 2025 20:48:33 -0300 Subject: [PATCH 2/3] V4.0.1 --- .github/workflows/workflow.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index deb738f..953e1a8 100755 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -3,6 +3,7 @@ name: CI/CD Pipeline on: push: branches: [main, master] + tags: ['v*'] jobs: @@ -79,7 +80,7 @@ jobs: name: Create Release runs-on: ubuntu-latest needs: build - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') permissions: contents: write steps: @@ -107,7 +108,7 @@ jobs: name: Publish to PyPI runs-on: ubuntu-latest needs: release - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') environment: release permissions: id-token: write From b7e1eed07f21bd74b80a4965406152ba7fc758d8 Mon Sep 17 00:00:00 2001 From: ddc Date: Sat, 19 Jul 2025 20:53:11 -0300 Subject: [PATCH 3/3] V4.0.1 --- .github/workflows/workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 953e1a8..b643d7d 100755 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -91,7 +91,7 @@ jobs: with: pattern: python-package-* path: dist - merge-multiple: true + merge-multiple: false - name: Create Release uses: softprops/action-gh-release@v2 @@ -118,7 +118,7 @@ jobs: with: pattern: python-package-* path: dist - merge-multiple: true + merge-multiple: false - name: Install twine run: pip install twine