-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Travis and Appveyor in favor of GH actions (#73)
* github actions * more actions * removed py39 * more actions * more actions * more actions * more actions * environment variables * actions * actions * os * os * os * os * os * os * os * os * os * os * os * os * os * os * os * attempt to get glibc to work * attempt to get glibc to work * attempt to get glibc to work * attempt to get glibc to work * attempt to get glibc to work * attempt to get glibc to work * attempt to get glibc to work * removed travis and appveyor * cleanup * cleanup * cleanup * cleanup * only build wheels on master * badge
- Loading branch information
Showing
4 changed files
with
61 additions
and
138 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 0' # weekly | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # Allow one of the matrix builds to fail without failing others | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
|
||
# The job | ||
name: Python ${{ matrix.python-version }} / ${{ matrix.os }} | ||
|
||
# The steps in the job. Each step either RUNS code, or USES an action | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Run tests and linting | ||
run: | | ||
pip install -r requirements.txt --quiet | ||
pip install pep8>=1.7.1 flake8>=3.5.0 black pip --upgrade --quiet | ||
pip install -e . | ||
black KDEpy -l 120 --check | ||
flake8 --show-source --ignore=F811,W293,W391,W292,W291,W504,W503,E231 --max-line-length=120 --exclude="*examples.py,testing.py,*kde.py" KDEpy | ||
pytest KDEpy --doctest-modules --capture=sys | ||
# ======================= BUILD WHEELS AND UPLOAD TO PYPI ================================== | ||
|
||
- name: Build wheels ${{ matrix.python-version }} on ${{ matrix.os }} | ||
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' | ||
env: | ||
CIBW_BUILD: 'cp36-* cp37-* cp38-*' | ||
run: | | ||
pip install cibuildwheel twine --upgrade; | ||
python -m cibuildwheel --output-dir dist; | ||
- name: Publish Python distribution to PyPI | ||
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
skip_existing: true | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} | ||
|
This file was deleted.
Oops, something went wrong.
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