Skip to content

Commit 962495d

Browse files
authored
CI: Move Windows build from Azure to GHA (#46960)
1 parent 9355e97 commit 962495d

File tree

5 files changed

+79
-65
lines changed

5 files changed

+79
-65
lines changed

.github/actions/build_pandas/action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ runs:
1212

1313
- name: Build Pandas
1414
run: |
15-
python setup.py build_ext -j 2
15+
python setup.py build_ext -j $N_JOBS
1616
python -m pip install -e . --no-build-isolation --no-use-pep517 --no-index
1717
shell: bash -el {0}
18+
env:
19+
# Cannot use parallel compilation on Windows, see https://github.com/pandas-dev/pandas/issues/30873
20+
N_JOBS: ${{ runner.os == 'Windows' && 1 || 2 }}

.github/workflows/posix.yml

-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ jobs:
180180
run: ci/run_tests.sh
181181
# TODO: Don't continue on error for PyPy
182182
continue-on-error: ${{ env.IS_PYPY == 'true' }}
183-
if: always()
184183

185184
- name: Build Version
186185
run: conda list

.github/workflows/windows.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 1.4.x
8+
pull_request:
9+
branches:
10+
- main
11+
- 1.4.x
12+
paths-ignore:
13+
- "doc/**"
14+
15+
env:
16+
PANDAS_CI: 1
17+
PYTEST_TARGET: pandas
18+
PYTEST_WORKERS: auto
19+
PATTERN: "not slow and not db and not network and not single_cpu"
20+
21+
22+
jobs:
23+
pytest:
24+
runs-on: windows-latest
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
timeout-minutes: 90
29+
strategy:
30+
matrix:
31+
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
32+
fail-fast: false
33+
concurrency:
34+
# https://github.community/t/concurrecy-not-work-for-push/183068/7
35+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-windows
36+
cancel-in-progress: true
37+
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v3
41+
with:
42+
fetch-depth: 0
43+
44+
- name: Install Dependencies
45+
uses: conda-incubator/[email protected]
46+
with:
47+
mamba-version: "*"
48+
channels: conda-forge
49+
activate-environment: pandas-dev
50+
channel-priority: strict
51+
environment-file: ci/deps/${{ matrix.env_file }}
52+
use-only-tar-bz2: true
53+
54+
- name: Build Pandas
55+
uses: ./.github/actions/build_pandas
56+
57+
- name: Test
58+
run: ci/run_tests.sh
59+
60+
- name: Build Version
61+
run: conda list
62+
63+
- name: Publish test results
64+
uses: actions/upload-artifact@v3
65+
with:
66+
name: Test results
67+
path: test-data.xml
68+
if: failure()
69+
70+
- name: Upload coverage to Codecov
71+
uses: codecov/codecov-action@v2
72+
with:
73+
flags: unittests
74+
name: codecov-pandas
75+
fail_ci_if_error: false

azure-pipelines.yml

-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
name: macOS
2828
vmImage: macOS-10.15
2929

30-
- template: ci/azure/windows.yml
31-
parameters:
32-
name: Windows
33-
vmImage: windows-2019
34-
3530
- job: py38_32bit
3631
pool:
3732
vmImage: ubuntu-18.04

ci/azure/windows.yml

-58
This file was deleted.

0 commit comments

Comments
 (0)