Skip to content

Commit 959aa25

Browse files
committed
Switching to github actions for tests
1 parent bc52e5b commit 959aa25

File tree

4 files changed

+48
-16
lines changed

4 files changed

+48
-16
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: 'Tests'
3+
4+
on:
5+
push:
6+
7+
pull_request:
8+
types: [opened, synchronize] #labeled, assigned]
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [2.7, 3.7, 3.8] # 2.7,
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@main
19+
with:
20+
submodules: recursive
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: Test with pytest
30+
run: |
31+
pip install -e .
32+
python -m unittest discover -v

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
_ressources
22
__pycache__
33
*.pyc
4+
_*
5+
!__init__.py
6+
*.egg-info

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name='matlab2python',
5+
version='1.0',
6+
description='matlab2python script from E. Branlard',
7+
url='http://github.com/ebranlard/matlab2python/',
8+
author='Emmanuel Branlard',
9+
author_email='[email protected]',
10+
license='MIT',
11+
packages=find_packages(),
12+
zip_safe=False
13+
)

0 commit comments

Comments
 (0)