From 4d01d5090057c63989e60cc609faf3fb370909e7 Mon Sep 17 00:00:00 2001 From: SAIKAT KARMAKAR <saikickkarma@gmail.com> Date: Sun, 5 May 2024 21:46:50 +0530 Subject: [PATCH] Test PyPI flow added & chanded code coverage test build to python3.9 only --- .github/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b2909c..67b1044 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,8 +32,11 @@ jobs: hatch run test:pytest - name: coverage test run: | - hatch run test:test-cov-xml + if [ "${{ matrix.python_version }}" == "3.9" ]; then + hatch run test:test-cov-xml + fi - uses: codecov/codecov-action@v4 + if: matrix.python_version == '3.9' with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true @@ -62,12 +65,21 @@ jobs: - name: Build run: | hatch build + - name: Publish 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip_existing: true + user: __token__ + password: ${{ secrets.TEST_PYPI_SECRECT }} + packages-dir: dist/ + repository-url: https://test.pypi.org/legacy/ - name: Publish 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_SECRECT }} packages-dir: dist/ + # - name: Create release # uses: ncipollo/release-action@v1 # with: