From 6dabdb26a09c602f8feb6c5419a75beaa73d72ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 17 May 2024 01:19:32 +0200 Subject: [PATCH] Convert main branch GitHub Action for OpenSUSE 3.6 builds. --- .github/PULL_REQUEST_TEMPLATE.md | 9 ------ .github/appveyor.yml | 38 ------------------------ .github/codecov.yml | 30 ------------------- .github/workflows/build.yml | 51 ++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 77 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/appveyor.yml delete mode 100644 .github/codecov.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4ce80d872df7b6..00000000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,9 +0,0 @@ -## CPython Mirror - -https://github.com/python/cpython is a cpython mirror repository. Pull requests -are not accepted on this repo and will be automatically closed. - -### Submit patches at https://bugs.python.org - -For additional information about contributing to CPython, see the -[developer's guide](https://docs.python.org/devguide/#contributing). diff --git a/.github/appveyor.yml b/.github/appveyor.yml deleted file mode 100644 index 3e0f588a2892e8..00000000000000 --- a/.github/appveyor.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: 3.6build{build} -clone_depth: 5 -branches: - only: - - master - - /\d\.\d/ - - buildbot-custom -cache: - - externals -> PCbuild\* -before_build: - - ps: |+ - if ($env:APPVEYOR_RE_BUILD) { - echo 'Doing full build due to re-build request.' - } elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) { - echo 'Not a PR, doing full build.' - } else { - git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH - $mergebase = git merge-base HEAD FETCH_HEAD - $changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)' - If (!$changes) { - echo 'Only docs were updated, stopping build process.' - Exit-AppveyorBuild - } else { - echo 'Doing full build due to non-doc changes in these files:' - echo $changes - } - } - - -build_script: - - cmd: PCbuild\build.bat -e - - cmd: PCbuild\win32\python.exe -m test.pythoninfo -test_script: - - cmd: PCbuild\rt.bat -q -uall -u-cpu -u-largefile -rwW --slowest --timeout=1200 -j0 -environment: - HOST_PYTHON: C:\Python36\python.exe -image: - - Visual Studio 2015 diff --git a/.github/codecov.yml b/.github/codecov.yml deleted file mode 100644 index ea504f48672eac..00000000000000 --- a/.github/codecov.yml +++ /dev/null @@ -1,30 +0,0 @@ -codecov: - strict_yaml_branch: master - notify: - require_ci_to_pass: true -comment: off -ignore: - - "Doc/**/*" - - "Misc/**/*" - - "Mac/**/*" - - "PC/**/*" - - "PCbuild/**/*" - - "Tools/**/*" - - "Grammar/*" -coverage: - precision: 2 - range: 70...90 - round: down - status: - changes: off - project: off - patch: off -parsers: - gcov: - branch_detection: - conditional: true - loop: true - macro: false - method: false - javascript: - enable_partials: false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000000..5710297ebd25fb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: Build and Test + +on: + push: + branches: + - 'opensuse_3.6*' + pull_request: + branches: + - 'opensuse_3.6*' + +jobs: + build_and_test: + runs-on: ubuntu-latest + + strategy: + matrix: + docker: [opensuse/leap] + + container: ${{ matrix.docker }} + + steps: + - run: zypper -n install + rpm-build + pkg-config + autoconf-archive + ccache + gdb + lcov + gdbm-devel + libbz2-devel + libb2-devel + libffi-devel + liblzma5 + libopenssl-3-devel + mpdecimal-devel + ncurses5-devel + readline6-devel + sqlite3-devel + strace + tk-devel + uuid-devel + xvfb-run + xz-devel + zlib-devel + - uses: actions/checkout@v4 + - name: Build + run: | + ./configure --with-pydebug + make -j + - name: Test + run: ./python -m test -j1