Skip to content
Snippets Groups Projects
Unverified Commit 9576123d authored by Stephan Kuschel's avatar Stephan Kuschel Committed by GitHub
Browse files

Merge pull request #253 from skuschel/github-actions

GitHub actions

run test in github-actions. Also allow python2 test to fail due to end of its support.
parents c0ce0f52 983e5133
Branches
Tags
No related merge requests found
name: run-tests
on: [push, pull_request]
jobs:
latest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r pip-requirements.txt
- name: run tests
run: |
./run-tests.py
other-os:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python-version: [3.x]
# have to copy steps from above, as anchors are currently
# not supported by github workflow (Jan 2020).
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r pip-requirements.txt
- name: run tests
run: |
./run-tests.py
...@@ -16,7 +16,8 @@ env: ...@@ -16,7 +16,8 @@ env:
jobs: jobs:
fast_finish: true fast_finish: true
# allow_failures: allow_failures:
- python: 2.7 # end of life since Jan 1st, 2020.
# have this allowed as there is a bug in matplotlib 2.1.0 # have this allowed as there is a bug in matplotlib 2.1.0
# - env: MATPLOTLIB_V=* NUMPY_V=* SCIPY_V=* CYTHON_V=* # - env: MATPLOTLIB_V=* NUMPY_V=* SCIPY_V=* CYTHON_V=*
include: include:
...@@ -74,7 +75,6 @@ before_install: ...@@ -74,7 +75,6 @@ before_install:
install: install:
- pip install -r pip-requirements.txt - pip install -r pip-requirements.txt
- python setup.py install
before_script: before_script:
- uname -a - uname -a
......
...@@ -63,7 +63,8 @@ def run_alltests(python='python', fast=False, skip_setup=False): ...@@ -63,7 +63,8 @@ def run_alltests(python='python', fast=False, skip_setup=False):
cmdrpl = dict(python=python) cmdrpl = dict(python=python)
# make sure .pyx sources are up to date and compiled # make sure .pyx sources are up to date and compiled
if not skip_setup: if not skip_setup:
runcmd('{python} setup.py develop --user'.format(**cmdrpl)) # should be the same as `./setup.py develop --user`
runcmd('{python} -m pip install --user -e .'.format(**cmdrpl))
# find pep8 or pycodestyle (its successor) # find pep8 or pycodestyle (its successor)
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment