Skip to content
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
CI: use new cibw actions; restructure
  • Loading branch information
MuellerSeb committed Apr 3, 2021
commit d58de242d390f07bcebb37ec30a4f16b53ee8a4e
29 changes: 10 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
# needed by coveralls
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CIBW_BUILD: "cp35-* cp36-* cp37-* cp38-* cp39-*"
CIBW_BEFORE_BUILD: 'pip install "numpy<=1.19.4" "scipy<=1.5.4" "cython>=0.29.14" setuptools'
CIBW_TEST_REQUIRES: "pytest scikit-learn"
CIBW_TEST_COMMAND: "pytest -v {project}/tests"

jobs:
format_check:
name: format check
Expand Down Expand Up @@ -75,6 +67,8 @@ jobs:
python setup.py build_ext --inplace

- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m pytest --cov pykrige --cov-report term-missing -v tests/
python -m coveralls --service=github
Expand All @@ -96,18 +90,15 @@ jobs:
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
pip install cibuildwheel==1.7.0
- name: Build wheels
run: |
python -m cibuildwheel --output-dir dist
uses: joerick/[email protected]
env:
CIBW_BUILD: cp35-* cp36-* cp37-* cp38-* cp39-*
CIBW_BEFORE_BUILD: pip install numpy==1.19.* scipy<=1.5.4 cython==0.29.* setuptools
CIBW_TEST_REQUIRES: pytest scikit-learn
CIBW_TEST_COMMAND: pytest -v {project}/tests
with:
output-dir: dist

- uses: actions/upload-artifact@v2
with:
Expand Down