Skip to content

CI: add sdist release workflow #41685

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

Merged
merged 21 commits into from
Jun 21, 2021
Merged
Changes from 9 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
56 changes: 56 additions & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: sdist

on:
push:
branches:
- master
pull_request:
branches:
- master
- 1.2.x

jobs:
build:
runs-on: ubuntu-latest
name: sdist test
timeout-minutes: 60

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install numpy cython python-dateutil pytz hypothesis pytest pytest-xdist
pip list

- name: Build Pandas sdist
run: |
python setup.py build_ext -q -j2
python setup.py sdist --formats=gztar

- name: Install Pandas From sdist
run: |
pip install dist/*.gz

- name: Build Version
run: |
python -c "import pandas; pandas.show_versions();"

- name: Test with pytest
run: |
python -c "import pandas; pandas.test(extra_args=['-m not clipboard', '--skip-slow', '--skip-network', '--skip-db', '-n=2'])"

- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: test-data.xml
if: failure()