diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 54660c7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - time: "13:00" - commit-message: - prefix: "fix: " diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 1cdbc81..0000000 --- a/.github/renovate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": [ - "config:base" - ], - "labels": [ - "bump:patch" - ] -} diff --git a/.github/workflows/depup.yml b/.github/workflows/depup.yml deleted file mode 100644 index 50de607..0000000 --- a/.github/workflows/depup.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: depup -on: - schedule: - - cron: "14 14 * * *" # Runs at 14:14 UTC every day - repository_dispatch: - types: [depup] - workflow_dispatch: - -jobs: - reviewdog: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-depup@v1 - id: depup - with: - file: Dockerfile - version_name: REVIEWDOG_VERSION - repo: reviewdog/reviewdog - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - token: ${{ secrets.GITHUB_TOKEN }} - title: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" - commit-message: "chore(deps): update reviewdog to ${{ steps.depup.outputs.latest }}" - body: | - Update reviewdog to [v${{ steps.depup.outputs.latest }}](https://github.com/reviewdog/reviewdog/releases/tag/v${{ steps.depup.outputs.latest }}) - Compare [v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}](https://github.com/reviewdog/reviewdog/compare/v${{ steps.depup.outputs.current }}...v${{ steps.depup.outputs.latest }}) - - This PR is auto generated by [depup workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3Adepup). - branch: depup/reviewdog - base: master - labels: "bump:minor" diff --git a/.github/workflows/on-push-create-release.yml b/.github/workflows/on-push-create-release.yml deleted file mode 100644 index b6fa173..0000000 --- a/.github/workflows/on-push-create-release.yml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. -name: Create new release -on: - workflow_call: - secrets: - PAT: - required: false - -jobs: - CreateRelease: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - token: ${{ secrets.PAT }} - - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.PAT }} - tag_prefix: "v" - dry_run: true - default_bump: false - - - name: Set Configurations - if: steps.tag_version.outputs.release_type - shell: bash - env: - OLD_VERSION: ${{ steps.tag_version.outputs.previous_version }} - VERSION: ${{ steps.tag_version.outputs.new_version }} - run: sed -ri "s/$OLD_VERSION/$VERSION/" "setup.py" || exit 1 - - - uses: EndBug/add-and-commit@v9 - if: steps.tag_version.outputs.release_type - with: - message: Update Version to ${{ steps.tag_version.outputs.new_version }} - committer_name: GitHub Actions - committer_email: actions@github.com - add: setup.py - - - name: Setup Python - if: steps.tag_version.outputs.release_type - uses: actions/setup-python@v5 - with: - python-version: 3.7 - - - name: Install dependencies - if: steps.tag_version.outputs.release_type - run: | - python -m pip install --upgrade pip - python -m pip install \ - setuptools \ - wheel \ - twine - python setup.py sdist bdist_wheel - - - uses: "marvinpinto/action-automatic-releases@latest" - if: steps.tag_version.outputs.release_type - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: ${{ steps.tag_version.outputs.new_tag }} - prerelease: false - files: | - LICENSE.md - *.tar.gz - *.whl diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d0f058f..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Python -on: - workflow_call: - secrets: - PYPI_PASSWORD: - required: false - TEST_PYPI_PASSWORD: - required: false - inputs: - workdir: - type: string - default: src - python-version: - type: string - default: 3.11.3 - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: ${{ inputs.python-version }} - - - name: Publish Snapshot to TestPyPi - uses: microsoft/action-python@0.7.2 - continue-on-error: true - if: ${{ github.event_name == 'pull_request' }} - with: - pypi_publish: true - pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }} - pypi_repo: testpypi - version_suffix: -post${{ github.run_number }}-dev${{ github.run_attempt }} - workdir: ${{ inputs.workdir }} - python_version: ${{ inputs.python-version }} - - - name: Publish RC to PyPi - uses: microsoft/action-python@0.7.2 - if: ${{ github.event_name == 'push' }} - with: - pypi_publish: true - pypi_password: ${{ secrets.PYPI_PASSWORD }} - version_suffix: -rc${{ github.run_number }}-post${{ github.run_attempt }} - workdir: ${{ inputs.workdir }} - python_version: ${{ inputs.python-version }} - - - name: Publish Release to PyPi - uses: microsoft/action-python@0.7.2 - if: ${{ github.event_name == 'release' }} - with: - pypi_publish: true - pypi_password: ${{ secrets.PYPI_PASSWORD }} - workdir: ${{ inputs.workdir }} - python_version: ${{ inputs.python-version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 98a96c2..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: release -on: - push: - branches: - - master - tags: - - 'v*.*.*' - pull_request: - types: - - labeled - -jobs: - release: - if: github.event.action != 'labeled' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - # Bump version on merging Pull Requests with specific labels. - # (bump:major,bump:minor,bump:patch) - - id: bumpr - if: "!startsWith(github.ref, 'refs/tags/')" - uses: haya14busa/action-bumpr@v1 - - # Update corresponding major and minor tag. - # e.g. Update v1 and v1.2 when releasing v1.2.3 - - uses: haya14busa/action-update-semver@v1 - if: "!steps.bumpr.outputs.skip" - with: - tag: ${{ steps.bumpr.outputs.next_version }} - - # Get tag name. - - id: tag - uses: haya14busa/action-cond@v1 - with: - cond: "${{ startsWith(github.ref, 'refs/tags/') }}" - if_true: ${{ github.ref }} - if_false: ${{ steps.bumpr.outputs.next_version }} - - # Create release. - - uses: shogo82148/actions-create-release@v1 - if: "steps.tag.outputs.value != ''" - with: - # This token is provided by Actions, you do not need to create your own token - github_token: ${{ secrets.GITHUB_TOKEN }} - tag_name: ${{ steps.tag.outputs.value }} - release_name: Release ${{ steps.tag.outputs.value }} - body: ${{ steps.bumpr.outputs.message }} - draft: false - prerelease: false - - release-check: - if: github.event.action == 'labeled' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Post bumpr status comment - uses: haya14busa/action-bumpr@v1 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml deleted file mode 100644 index 247c1bc..0000000 --- a/.github/workflows/reviewdog.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: reviewdog -on: - push: - branches: - - master - pull_request: -jobs: - shellcheck: - name: runner / shellcheck - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: haya14busa/action-cond@v1 - id: reporter - with: - cond: ${{ github.event_name == 'pull_request' }} - if_true: "github-pr-review" - if_false: "github-check" - - uses: reviewdog/action-shellcheck@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: ${{ steps.reporter.outputs.value }} - level: warning - - misspell: - name: runner / misspell - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-misspell@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-check - level: warning - locale: "US" - - alex: - name: runner / alex - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: reviewdog/action-alex@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-check - level: warning diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 8f1b3dc..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Test -on: - push: - branches: - - master - pull_request: -jobs: - test-check: - name: runner / pyaction (github-check) - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.7] - steps: - # Checkout this repo and Python Package Template repo for validation testing. - - uses: actions/checkout@v4 - with: - repository: microsoft/python-package-template - path: pyproject - clean: true - - uses: actions/checkout@v4 - with: - path: pyaction - clean: true - - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - # Test the action with no enabled steps. - - name: NoOps - uses: ./pyaction - with: - black: false - bandit: false - pylint: false - pyright: false - pytest: false - pypi_publish: false - pypi_custom_publish: false - - # Test the action with all enabled steps. -# - name: All Ops -# uses: ./pyaction -# with: -# black: true -# bandit: true -# pylint: true -# pyright: true -# pytest: true -# pypi_publish: true -# pypi_repo: testpypi -# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }} -# root: pyproject -# version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}' diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml deleted file mode 100644 index 7c513aa..0000000 --- a/.github/workflows/validation.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Python -on: - workflow_call: - inputs: - workdir: - type: string - default: src - testdir: - type: string - default: tests - python-version: - type: string - default: 3.11.3 - secrets: - AZURE_CREDENTIALS: - required: false - -jobs: - validation: - runs-on: ubuntu-latest - strategy: - matrix: - tools: ['black', 'bandit', 'pylint', 'flake8'] - include: - - tools: pytest - args: -m not integration and not gpu - - tools: pytest - args: -m integration - steps: - - uses: actions/checkout@v4 - - uses: Azure/login@v1.5.1 - continue-on-error: true - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: ${{ matrix.tools }} - uses: microsoft/action-python@0.7.2 - with: - ${{ matrix.tools }}: true - args: ${{ matrix.args }} - workdir: ${{ inputs.workdir }} - testdir: ${{ inputs.testdir }} - python_version: ${{ inputs.python-version }}