From 8ecba2c64b7dc6b50e9c53e1348cdc0800eab26c Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Thu, 31 Oct 2024 15:20:43 +0900 Subject: [PATCH] :ship: test: disable temporal cd pipeline for codecov pr comments --- .github/workflows/cicd-push-master.yaml | 150 ++++++++++++------------ codecov.yaml | 8 +- 2 files changed, 80 insertions(+), 78 deletions(-) diff --git a/.github/workflows/cicd-push-master.yaml b/.github/workflows/cicd-push-master.yaml index 3d8cde6..4596ec2 100644 --- a/.github/workflows/cicd-push-master.yaml +++ b/.github/workflows/cicd-push-master.yaml @@ -59,78 +59,78 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} if: always() - deploy-github: - runs-on: ubuntu-latest - needs: [build] - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Tag and push - env: - GH_USERNAME: ${{ secrets.GH_USERNAME }} - GH_TOKEN: ${{ secrets.GH_TOKEN }} - run: | - VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/') - git config --global user.email "ohg3417@gmail.com" - git config --global user.name "${GH_USERNAME}" - git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f" - git tag ${VERSION} - git push origin ${VERSION} - - - name: Slack webhook - uses: 8398a7/action-slack@v3 - with: - status: ${{ job.status }} - author_name: zerohertzLib - fields: repo,message,commit,author,action,eventName,ref,workflow,job,took - if_mention: failure,cancelled - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} - if: always() - - deploy-pypi: - runs-on: ubuntu-latest - needs: [build] - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.11 - - - name: Cache virtualenv - uses: actions/cache@v4 - with: - path: venv - key: ${{ runner.os }}-python-venv - restore-keys: | - ${{ runner.os }}-python-venv- - - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: build-artifacts - path: dist - - - name: Deploy to PyPI - env: - PYPI_USERNAME: ${{ secrets.GH_USERNAME }} - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - run: | - source venv/bin/activate - pip install twine - twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/* - - - name: Slack webhook - uses: 8398a7/action-slack@v3 - with: - status: ${{ job.status }} - author_name: zerohertzLib - fields: repo,message,commit,author,action,eventName,ref,workflow,job,took - if_mention: failure,cancelled - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} - if: always() + # deploy-github: + # runs-on: ubuntu-latest + # needs: [build] + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # + # - name: Tag and push + # env: + # GH_USERNAME: ${{ secrets.GH_USERNAME }} + # GH_TOKEN: ${{ secrets.GH_TOKEN }} + # run: | + # VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/') + # git config --global user.email "ohg3417@gmail.com" + # git config --global user.name "${GH_USERNAME}" + # git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f" + # git tag ${VERSION} + # git push origin ${VERSION} + # + # - name: Slack webhook + # uses: 8398a7/action-slack@v3 + # with: + # status: ${{ job.status }} + # author_name: zerohertzLib + # fields: repo,message,commit,author,action,eventName,ref,workflow,job,took + # if_mention: failure,cancelled + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} + # if: always() + # + # deploy-pypi: + # runs-on: ubuntu-latest + # needs: [build] + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + # + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: 3.11 + # + # - name: Cache virtualenv + # uses: actions/cache@v4 + # with: + # path: venv + # key: ${{ runner.os }}-python-venv + # restore-keys: | + # ${{ runner.os }}-python-venv- + # + # - name: Download build artifacts + # uses: actions/download-artifact@v4 + # with: + # name: build-artifacts + # path: dist + # + # - name: Deploy to PyPI + # env: + # PYPI_USERNAME: ${{ secrets.GH_USERNAME }} + # PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + # run: | + # source venv/bin/activate + # pip install twine + # twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/* + # + # - name: Slack webhook + # uses: 8398a7/action-slack@v3 + # with: + # status: ${{ job.status }} + # author_name: zerohertzLib + # fields: repo,message,commit,author,action,eventName,ref,workflow,job,took + # if_mention: failure,cancelled + # env: + # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} + # if: always() diff --git a/codecov.yaml b/codecov.yaml index 8e70146..dd9adfa 100644 --- a/codecov.yaml +++ b/codecov.yaml @@ -1,14 +1,16 @@ coverage: status: + project: + default: + target: 100% patch: default: target: 100% comment: - # layout: "condensed_header, condensed_files, condensed_footer" - layout: "diff, flags, files" + layout: "condensed_header, condensed_files, diff, flags, files, condensed_footer" behavior: default - # require_changes: false + require_changes: false require_base: false require_head: false hide_project_coverage: false