Skip to content

Commit b9347ca

Browse files
authored
MAINT: Add Github actions for unittests (#185)
Move away from Travis-CI
1 parent 52712a4 commit b9347ca

File tree

5 files changed

+40
-46
lines changed

5 files changed

+40
-46
lines changed

.coveragerc

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

.github/workflows/python-app.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
python-version: ["3.9", "3.10", "3.11"]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Python 3
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install poetry==2.0.0
32+
poetry add flake8 pytest coverage
33+
poetry install --no-interaction --no-root
34+
- name: Lint with flake8
35+
run: |
36+
poetry run flake8 .
37+
- name: unittests
38+
run: |
39+
poetry run coverage run -m pytest
40+
poetry run coverage report -m

.landscape.yaml

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

.travis.yml

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

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[![Documentation Status](https://readthedocs.org/projects/tftb/badge/?version=latest)](https://tftb.readthedocs.io/en/latest/?badge=latest)
2-
[![Build Status](https://travis-ci.org/scikit-signal/tftb.svg)](https://travis-ci.org/scikit-signal/tftb)
3-
41
# tftb
52

63
tftb (Time-frequency toolbox) is a Python module for time-frequency analysis and visualization

0 commit comments

Comments
 (0)