From ab8a7bea512c4e722f85119a9d082e724d2a496c Mon Sep 17 00:00:00 2001 From: Artem Batalov Date: Mon, 11 Dec 2023 15:41:09 +0300 Subject: [PATCH] Fix jobs --- .../{python-publish-to-pip.yml => build-publish.yml} | 7 +++---- .github/workflows/{python-package.yml => tests.yml} | 9 +++------ 2 files changed, 6 insertions(+), 10 deletions(-) rename .github/workflows/{python-publish-to-pip.yml => build-publish.yml} (92%) rename .github/workflows/{python-package.yml => tests.yml} (92%) diff --git a/.github/workflows/python-publish-to-pip.yml b/.github/workflows/build-publish.yml similarity index 92% rename from .github/workflows/python-publish-to-pip.yml rename to .github/workflows/build-publish.yml index 6e49aa11..41d407e1 100644 --- a/.github/workflows/python-publish-to-pip.yml +++ b/.github/workflows/build-publish.yml @@ -1,15 +1,15 @@ # This workflow will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries -name: Upload Python Package +name: Build Python Package on: release: types: [created] - pull_request: {} + push: {} jobs: - deploy: + build: runs-on: ubuntu-latest @@ -42,7 +42,6 @@ jobs: poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD - name: Upload Artifacts uses: actions/upload-artifact@v3 - if: ${{ github.event_name == 'pull_request' }} with: path: dist/*.whl - name: Upload Release Assets diff --git a/.github/workflows/python-package.yml b/.github/workflows/tests.yml similarity index 92% rename from .github/workflows/python-package.yml rename to .github/workflows/tests.yml index cd3a11cc..9822b584 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/tests.yml @@ -1,16 +1,13 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Python package +name: Run tests on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + push: {} jobs: - build: + tests: strategy: fail-fast: false