8000 CI, MAINT: use `fetch-tags: true` to speed up NumPy checkouts by agriyakhetarpal · Pull Request #25900 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
8000

CI, MAINT: use fetch-tags: true to speed up NumPy checkouts #25900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# To enable this workflow on a fork, comment out:
#
# if: github.repository == 'numpy/numpy'
name: Test on Cygwin
on:
pull_request:
Expand All @@ -18,14 +15,15 @@ permissions:
jobs:
cygwin_build_test:
runs-on: windows-latest
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install Cygwin
uses: egor-tensin/setup-cygwin@d2c752bab416d4b0662591bd366fc2686297c82d #v4
uses: egor-tensin/setup-cygwin@d2c752bab416d4b0662591bd366fc2686297c82d # v4
with:
platform: x86_64
install-dir: 'C:\tools\cygwin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}
jobs:
pr-labeler:
runs-on: ubuntu-latest
permissions:
permissions:
pull-requests: write # to add labels
steps:
- name: Label the PR
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ permissions:

jobs:
lint:
# To enable this job and subsequent jobs on a fork, comment out:
if: github.repository == 'numpy/numpy' && github.event_name != 'push'
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -47,15 +48,16 @@ jobs:
python tools/linter.py --branch origin/${{ github.base_ref }}

smoke_test:
if: "github.repository == 'numpy/numpy'"
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
env:
MESON_ARGS: "-Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
Expand All @@ -69,7 +71,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: 'pypy3.9-v7.3.12'
Expand All @@ -87,7 +89,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install debug Python
run: |
sudo apt-get update
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
Expand Down Expand Up @@ -153,7 +155,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
Expand Down Expand Up @@ -184,7 +186,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down Expand Up @@ -218,7 +220,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Checkout array-api-tests
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -256,7 +258,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down
37 changes: 19 additions & 18 deletions .github/workflows/linux_blas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ permissions:

jobs:
openblas32_stable_nightly:
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -66,7 +67,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:


openblas_no_pkgconfig_fedora:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
container: fedora:39
name: "OpenBLAS (Fedora, no pkg-config, LP64/ILP64)"
Expand All @@ -128,7 +129,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true

- name: Install dependencies
run: |
Expand All @@ -151,7 +152,7 @@ jobs:


flexiblas_fedora:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
container: fedora:39
name: "FlexiBLAS (LP64, ILP64 on Fedora)"
Expand All @@ -163,7 +164,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true

- name: Install dependencies
run: |
Expand All @@ -186,14 +187,14 @@ jobs:


openblas_cmake:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
name: "OpenBLAS with CMake"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand All @@ -214,14 +215,14 @@ jobs:


netlib-debian:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
name: "Debian libblas/liblapack"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand All @@ -243,7 +244,7 @@ jobs:


netlib-split:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
container: opensuse/tumbleweed
name: "OpenSUSE Netlib BLAS/LAPACK"
Expand All @@ -257,7 +258,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true

- name: Install PyPI dependencies
run: |
Expand All @@ -274,14 +275,14 @@ jobs:


mkl:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
name: "MKL (LP64, ILP64, SDL)"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down Expand Up @@ -337,14 +338,14 @@ jobs:
run: spin test -- numpy/linalg

blis:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
name: "BLIS"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down Expand Up @@ -373,14 +374,14 @@ jobs:
run: spin test -- numpy/linalg

atlas:
if: "github.repository == 'numpy/numpy'"
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
name: "ATLAS"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/linux_compiler_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ permissions:

jobs:
gcc_sanitizers:
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/linux_musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ permissions:
jobs:
musllinux_x86_64:
runs-on: ubuntu-latest
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
container:
# Use container used for building musllinux wheels
# it has git installed, all the pythons, etc
Expand All @@ -34,11 +35,11 @@ jobs:
# actions/checkout is used for the clone step in a container

git config --global --add safe.directory $PWD

if [ $GITHUB_EVENT_NAME != pull_request ]; then
git clone --recursive --branch=$GITHUB_REF_NAME https://github.com/${GITHUB_REPOSITORY}.git $GITHUB_WORKSPACE
git reset --hard $GITHUB_SHA
else
else
git clone --recursive https://github.com/${GITHUB_REPOSITORY}.git $GITHUB_WORKSPACE
git fetch origin $GITHUB_REF:my_ref_name
git checkout $GITHUB_BASE_REF
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/linux_qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ permissions:

jobs:
linux_qemu:
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-22.04
continue-on-error: true
strategy:
Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true

- name: Initialize binfmt_misc for qemu-user-static
run: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/linux_simd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ permissions:

jobs:
baseline_only:
if: "github.repository == 'numpy/numpy'"
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
runs-on: ubuntu-latest
env:
MESON_ARGS: "-Dallow-noblas=true -Dcpu-dispatch=none"
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
Expand All @@ -77,7 +78,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.9'
Expand Down Expand Up @@ -141,7 +142,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "${{ matrix.BUILD_PROP[2] }}"
Expand All @@ -155,7 +156,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down Expand Up @@ -209,7 +210,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
Expand Down
Loading
0