From cebc737c43c66f718eabcc7219253a0b529caae2 Mon Sep 17 00:00:00 2001 From: mzouink Date: Fri, 9 Feb 2024 16:50:37 -0500 Subject: [PATCH] update git action, fix doc and no more publish --- .github/workflows/black.yaml | 2 ++ .github/workflows/docs.yaml | 9 ++++---- .github/workflows/publish.yaml | 38 ---------------------------------- .github/workflows/tests.yaml | 3 +-- 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index 533fd7c80..a9ebfdec7 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -1,5 +1,7 @@ name: black-action + on: [push, pull_request] + jobs: linter_name: name: runner / black diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 5a84cc86b..d8d7b388d 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,8 +1,7 @@ -name: Pages -on: - push: - branches: - - master +name: Generate Pages + +on: [push, pull_request] + jobs: docs: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 47d19b651..000000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Upload Python Package - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PIPY_PASSWORD }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 020ca3074..132ee4d28 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,7 +1,6 @@ name: Test -on: - push: +on: [push, pull_request] jobs: test: