-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* BLD: GH actions for tests * BUG: Fix series comparison * BUG: Fix tz old vs new conversion issues * BLD: Automatic builds and publish * BLD: Bump the version
- Loading branch information
gerrymanoim
authored
Feb 25, 2020
1 parent
fcf6cd0
commit 5210b80
Showing
13 changed files
with
612 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name-template: 'v$NEXT_PATCH_VERSION 🌈' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [2.7, 3.5, 3.7, 3.8] | ||
include: | ||
- python-version: 2.7 | ||
pandas: 0.18.1 | ||
numpy: 1.11.3 | ||
- python-version: 3.5 | ||
pandas: 0.18.1 | ||
numpy: 1.11.3 | ||
- python-version: 3.7 | ||
pandas: 1.0.1 | ||
numpy: 1.18.1 | ||
- python-version: 3.8 | ||
pandas: 1.0.1 | ||
numpy: 1.18.1 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pandas }}-${{ matrix.numpy }}-pip-${{ hashFiles('**/setup.py') }} | ||
- name: Install dependencies | ||
env: | ||
PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pandas==${{ matrix.pandas }} numpy==${{ matrix.numpy }} | ||
pip install -e .[test] | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 | ||
- name: Run the tests | ||
run: | | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: On Master Merge | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
draft-release-publish: | ||
name: Draft a new release | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
config-name: release-drafter-config.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish Python 🐍 distributions 📦 to PyPI | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to TestPyPI | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Build sdist | ||
run: python setup.py sdist | ||
|
||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.test_pypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Install from test and test running | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --extra-index-url https://test.pypi.org/simple qgrid | ||
python -c 'import qgrid;print(qgrid.__version__)' | ||
pip uninstall -y qgrid | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} | ||
|
||
- name: Install and test running | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --extra-index-url qgrid | ||
python -c 'import qgrid;print(qgrid.__version__)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
version_info = (1, 2, 0, 'final') | ||
version_info = (1, 3, 0, "final") | ||
|
||
_specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''} | ||
_specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": ""} | ||
|
||
__version__ = '%s.%s.%s%s'%(version_info[0], version_info[1], version_info[2], | ||
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4])) | ||
__version__ = "%s.%s.%s%s" % ( | ||
version_info[0], | ||
version_info[1], | ||
version_info[2], | ||
"" | ||
if version_info[3] == "final" | ||
else _specifier_[version_info[3]] + str(version_info[4]), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
Oops, something went wrong.