forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 1.94 KB
/
sdist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: sdist
on:
push:
branches:
- master
- 1.3.x
pull_request:
branches:
- master
- 1.3.x
paths-ignore:
- "doc/**"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
concurrency:
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{matrix.python-version}}-sdist
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
- name: Install dependencies
run: |
python -m pip install --upgrade pip "setuptools<60.0.0" wheel
# GH 39416
pip install numpy
- name: Build pandas sdist
run: |
pip list
python setup.py sdist --formats=gztar
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-sdist
channels: conda-forge
python-version: '${{ matrix.python-version }}'
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
- name: Install pandas from sdist
run: |
python -m pip install --upgrade "setuptools<60.0.0"
pip list
python -m pip install dist/*.gz
- name: Force oldest supported NumPy
run: |
case "${{matrix.python-version}}" in
3.8)
pip install numpy==1.18.5 ;;
3.9)
pip install numpy==1.19.3 ;;
3.10)
pip install numpy==1.21.2 ;;
esac
- name: Import pandas
run: |
cd ..
conda list
python -c "import pandas; pandas.show_versions();"