diff --git a/.ci/build.sh b/.ci/build.sh deleted file mode 100644 index e938206b..00000000 --- a/.ci/build.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e -x - -python -m pip install -U -e .[dev] \ No newline at end of file diff --git a/.ci/run_tests.sh b/.ci/run_tests.sh deleted file mode 100644 index 98afcc08..00000000 --- a/.ci/run_tests.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e -x - -coverage run --branch -m pytest tests -coverage xml -coverage erase \ No newline at end of file diff --git a/.github/workflows/gh-tests-ci.yml b/.github/workflows/gh-tests-ci.yml deleted file mode 100644 index d2350105..00000000 --- a/.github/workflows/gh-tests-ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Unittest pipeline - -on: - workflow_dispatch: - push: - pull_request: - branches: [ dev ] - schedule: - # Monday to Thursday 1 AM PDT build - - cron: "0 8 * * 1,2,3,4" - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python_version: [3.7, 3.8, 3.9, "3.10", "3.11"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python_version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -U -e .[dev] - - name: Test with pytest - run: | - python -m pytest --cache-clear --cov=./azure --cov-report=xml --cov-branch tests - - name: Codecov - if: ${{ matrix.python-version }} == 3.9 - uses: codecov/codecov-action@v2 - with: - file: ./coverage.xml - flags: unittests - name: codecov - fail_ci_if_error: false diff --git a/.github/workflows/pr_title_enforcer.yml b/.github/workflows/pr_title_enforcer.yml new file mode 100644 index 00000000..00d21d3e --- /dev/null +++ b/.github/workflows/pr_title_enforcer.yml @@ -0,0 +1,20 @@ +name: "PR Title Enforcer" + +on: + pull_request: + types: + - opened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index d3caca87..074d0eb9 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -36,6 +36,8 @@ extends: compiled: enabled: true # still only runs for default branch runSourceLanguagesInSourceAnalysis: true + settings: + skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }} stages: - stage: Build diff --git a/eng/templates/build.yml b/eng/templates/build.yml index faf01484..44603de8 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -2,6 +2,11 @@ jobs: - job: "Build" displayName: 'Build Python SDK' + pool: + name: 1es-pool-azfunc + image: 1es-ubuntu-22.04 + os: linux + steps: - task: UsePythonVersion@0 inputs: