Skip to content
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

CI: add sdist release workflow #41685

Merged
merged 21 commits into from
Jun 21, 2021
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: sdist

on:
push:
branches:
- master
pull_request:
branches:
- master
- 1.2.x
fangchenli marked this conversation as resolved.
Show resolved Hide resolved
- 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.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel

# GH 39416
pip install numpy
fangchenli marked this conversation as resolved.
Show resolved Hide resolved

- name: Build pandas sdist
run: |
pip list
python setup.py sdist --formats=gztar

- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-sdist
python-version: ${{ matrix.python-version }}

- name: Install pandas from sdist
run: |
conda list
python -m pip install dist/*.gz

- name: Import pandas
run: |
cd ..
conda list
python -c "import pandas; pandas.show_versions();"