Skip to content

Commit

Permalink
try github actions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman committed Sep 17, 2019
1 parent 0bb6583 commit 9e045de
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 169 deletions.
114 changes: 0 additions & 114 deletions .appveyor.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
on: push
name: on push
jobs:
Tests:
name: base
strategy:
matrix:
python: [ '2.7', '3.5', '3.6', '3.7']
java: [ '8', '9', '10', '11' ]
os: ['ubuntu-latest'] # , 'windows-latest']

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master

- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}

- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
architecture: x64 // (x64 or x86) - defaults to x64

- name: install
run: pip install .[dev,ci]

- name: test
run: |
cd tests
CLASSPATH=../build/test-classes:../build/classes PYTHONPATH=..:$PYTHONPATH nosetests -v
# - name: coveralls
# run: python -m coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

# TestsPyPy:
# name: test pypy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Setup python
# uses: actions/setup-python@v1
# with:
# python-version: pypy3
# - name: prepare
# run: pip install -U setuptools wheel
# - name: install
# run: pip install .[dev,ci]
# - name: test
# run: python -m pytest --reruns 5 tests/ --cov oscpy/ --cov-branch
# - name: coveralls
# run: python -m coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

# TestsMacOs:
# name: test OSX
# runs-on: macOs-latest
# steps:
# - uses: actions/checkout@master
# - name: prepare
# run: pip install -U setuptools wheel
# - name: install
# run: pip install .[dev,ci]
# - name: test
# run: python -m pytest --reruns 5 tests/ --cov oscpy/ --cov-branch
# - name: coveralls
# run: python -m coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,9 @@ def compile_native_invocation_handler(*possible_homes):
extra_link_args=EXTRA_LINK_ARGS
)
],
extras_require={
'dev': ['nose', 'wheel', 'pytest-cov', 'pycodestyle'],
'ci': ['coveralls', 'pytest-rerunfailures'],
},
**SETUP_KWARGS
)

0 comments on commit 9e045de

Please sign in to comment.