diff --git a/.github/workflows/broken-linkcheck.yml b/.github/workflows/broken-linkcheck.yml deleted file mode 100644 index 134253848f710..0000000000000 --- a/.github/workflows/broken-linkcheck.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Linkcheck -on: - schedule: - # Run monthly on the 1st day of the month - - cron: '0 0 1 * *' - pull_request: - paths: - - ".github/workflows/broken-linkcheck.yml" - - "doc/make.py" -jobs: - linkcheck: - if: false - runs-on: ubuntu-latest - defaults: - run: - shell: bash -el {0} - - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - name: Set up Conda - uses: ./.github/actions/setup-conda - - - name: Build Pandas - uses: ./.github/actions/build_pandas - - - name: Run linkcheck script - working-directory: ./doc - run: | - set -o pipefail - python make.py linkcheck | tee linkcheck.txt - - - name: Display broken links - if: failure() - working-directory: ./doc - run: grep broken linkcheck.txt diff --git a/.github/workflows/cache-cleanup-daily.yml b/.github/workflows/cache-cleanup-daily.yml index 8eadfb2ccd2a9..517d9839f4832 100644 --- a/.github/workflows/cache-cleanup-daily.yml +++ b/.github/workflows/cache-cleanup-daily.yml @@ -6,7 +6,7 @@ on: jobs: cleanup: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: github.repository_owner == 'pandas-dev' permissions: actions: write diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml index 099974141c1d1..e355c8bc8acf3 100644 --- a/.github/workflows/cache-cleanup.yml +++ b/.github/workflows/cache-cleanup.yml @@ -6,7 +6,8 @@ on: jobs: cleanup: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 + if: github.repository_owner == 'pandas-dev' steps: - name: Clean Cache run: | diff --git a/.github/workflows/comment-commands.yml b/.github/workflows/comment-commands.yml index d407f40ef2c08..053907e6cebbc 100644 --- a/.github/workflows/comment-commands.yml +++ b/.github/workflows/comment-commands.yml @@ -19,64 +19,3 @@ jobs: with: previewer-server: "https://pandas.pydata.org/preview" artifact-job: "Doc Build and Upload" - asv_run: - runs-on: ubuntu-24.04 - # TODO: Support more benchmarking options later, against different branches, against self, etc - if: github.event.issue.pull_request && startsWith(github.event.comment.body, '@github-actions benchmark') - defaults: - run: - shell: bash -el {0} - env: - ENV_FILE: environment.yml - COMMENT: ${{github.event.comment.body}} - - concurrency: - # Set concurrency to prevent abuse(full runs are ~5.5 hours !!!) - # each user can only run one concurrent benchmark bot at a time - # We don't cancel in progress jobs, but if you want to benchmark multiple PRs, you're gonna have - # to wait - group: ${{ github.actor }}-asv - cancel-in-progress: false - - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - # Although asv sets up its own env, deps are still needed - # during discovery process - - name: Set up Conda - uses: ./.github/actions/setup-conda - - - name: Run benchmarks - id: bench - continue-on-error: true # asv will exit code 1 for regressions - run: | - # extracting the regex, see https://stackoverflow.com/a/36798723 - REGEX=$(echo "$COMMENT" | sed -n "s/^.*-b\s*\(\S*\).*$/\1/p") - cd asv_bench - asv check -E existing - git remote add upstream https://github.com/pandas-dev/pandas.git - git fetch upstream - asv machine --yes - asv continuous -f 1.1 -b $REGEX upstream/main HEAD - echo 'BENCH_OUTPUT<> $GITHUB_ENV - asv compare -f 1.1 upstream/main HEAD >> $GITHUB_ENV - echo 'EOF' >> $GITHUB_ENV - echo "REGEX=$REGEX" >> $GITHUB_ENV - - - uses: actions/github-script@v8 - env: - BENCH_OUTPUT: ${{env.BENCH_OUTPUT}} - REGEX: ${{env.REGEX}} - with: - script: | - const ENV_VARS = process.env - const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '\nBenchmarks completed. View runner logs here.' + run_url + '\nRegex used: '+ 'regex ' + ENV_VARS["REGEX"] + '\n' + ENV_VARS["BENCH_OUTPUT"] - }) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 51901919e4adb..f708308b7ec9f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -182,7 +182,7 @@ jobs: strategy: matrix: # Note: Don't use macOS latest since macos 14 appears to be arm64 only - os: [macos-13, macos-14, windows-latest] + os: [macos-13, macos-14, windows-2025] env_file: [actions-311.yaml, actions-312.yaml, actions-313.yaml] fail-fast: false runs-on: ${{ matrix.os }} @@ -322,7 +322,7 @@ jobs: fail-fast: false matrix: # Separate out macOS 13 and 14, since macOS 14 is arm64 only - os: [ubuntu-24.04, macOS-13, macOS-14, windows-latest] + os: [ubuntu-24.04, macOS-13, macOS-14, windows-2025] timeout-minutes: 90 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 6f9bb2c487cf8..7da88d634adfc 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -229,7 +229,7 @@ jobs: - build_sdist - build_wheels - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 environment: name: pypi @@ -243,6 +243,8 @@ jobs: with: path: dist # everything lands in ./dist/** + # TODO: This step can be probably be achieved by actions/download-artifact@v5 + # by specifying merge-multiple: true, and a glob pattern - name: Collect files run: | mkdir -p upload