diff --git a/.github/workflows/python-publish-to-pip.yml b/.github/workflows/build-publish.yml similarity index 94% rename from .github/workflows/python-publish-to-pip.yml rename to .github/workflows/build-publish.yml index 6e49aa11..7031d0d7 100644 --- a/.github/workflows/python-publish-to-pip.yml +++ b/.github/workflows/build-publish.yml @@ -6,10 +6,10 @@ name: Upload 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 93% rename from .github/workflows/python-package.yml rename to .github/workflows/tests.yml index cd3a11cc..3dfe3d82 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/tests.yml @@ -4,13 +4,10 @@ name: Python package on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + push: {} jobs: - build: + tests: strategy: fail-fast: false