Skip to content

Commit 2840c65

Browse files
add github workflow to test sdist
1 parent 75f3e27 commit 2840c65

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

+47
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,50 @@ jobs:
132132
- name: Upload dev docs
133133
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
134134
if: github.event_name == 'push'
135+
136+
build-sdist:
137+
name: Build from source distribution
138+
runs-on: ubuntu-latest
139+
steps:
140+
- name: Update for build environment
141+
run: |
142+
sudo apt-get update
143+
sudo apt-get install -y build-essential
144+
sudo apt-get clean
145+
- name: Setting conda path
146+
run: echo "$CONDA/bin" >> $GITHUB_PATH
147+
- name: Update conda
148+
run: |
149+
conda config --set quiet true --set always_yes true
150+
conda update -n base -c defaults conda
151+
conda list
152+
- name: Checkout pandas
153+
uses: actions/checkout@v2
154+
- name: Fetch git tags
155+
run: |
156+
git remote -v
157+
git fetch --all --tags
158+
- name: Setup conda environment for build
159+
run: |
160+
conda create --name build-sdist python=3.8 numpy
161+
- name: Build the sdist
162+
run: |
163+
source activate build-sdist
164+
conda list
165+
rm -rf dist
166+
git clean -xfd
167+
python setup.py clean --quiet
168+
python setup.py sdist --formats=gztar --quiet
169+
- name: Setup conda environment for test
170+
run: |
171+
conda create --name pip-test python=3.8 pytest pytest-xdist pytest-mock hypothesis
172+
- name: Install pandas and test
173+
run: |
174+
pwd
175+
cd ..
176+
pwd
177+
source activate pip-test
178+
conda list
179+
pip install pandas/dist/*.gz
180+
conda list
181+
python3 -c "import pandas; pandas.test(extra_args=['-m not clipboard', '--skip-slow', '--skip-network', '--skip-db', '-n=2'])"

0 commit comments

Comments
 (0)