From 0ab3ef4c8faf0d383ecaa3b16787e92f219d77a9 Mon Sep 17 00:00:00 2001 From: glados-verma Date: Fri, 14 Oct 2022 14:34:11 -0700 Subject: [PATCH] Branch build_and_deploy to continuous_integration.yml and remove deployment action (to be added in separate workflow) (#1063) * Rename build_and_deploy to continuous_integration to preserve history * Modify contents of continuous_integration with some ideas from the default workflow * Run CI on all pushes and pull requests. --- ..._deploy.yml => continuous_integration.yml} | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) rename .github/workflows/{build_and_deploy.yml => continuous_integration.yml} (82%) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/continuous_integration.yml similarity index 82% rename from .github/workflows/build_and_deploy.yml rename to .github/workflows/continuous_integration.yml index 612fd1966..de16f20ce 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/continuous_integration.yml @@ -12,21 +12,21 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Continuous Integration +# 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 -on: - - push - - pull_request +name: Continuous Integration -permissions: - contents: read +on: [push, pull_request] jobs: - build: + build_and_test: + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9'] + python-version: ["3.7", "3.8", "3.9"] steps: - uses: actions/checkout@v3 @@ -51,13 +51,6 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: coveralls --service=github - - name: Publish to PyPI - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_PUBLISH_PASSWORD }} - skip_existing: true web_ui: runs-on: ubuntu-latest