Skip to content

Commit 66bb5ee

Browse files
committed
update CI from travis -> Github actions
1 parent 5d079fe commit 66bb5ee

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow runs CI tests: it installs Python dependencies and run tests across a variety of Python versions
2+
3+
name: build
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [3.6, 3.7, 3.8, 3.9]
18+
19+
steps:
20+
- uses: actions/checkout@v2
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+
pip install pytest
29+
pip install pytest-cov
30+
pip install -r requirements.txt
31+
pip install -r optional-requirements.txt
32+
- name: Test with pytest
33+
run: |
34+
pytest --cov=./
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v1

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ FOOOF - fitting oscillations & one over f
1010
.. |Version| image:: https://img.shields.io/pypi/v/fooof.svg
1111
.. _Version: https://pypi.python.org/pypi/fooof/
1212

13-
.. |BuildStatus| image:: https://travis-ci.com/fooof-tools/fooof.svg
14-
.. _BuildStatus: https://travis-ci.com/fooof-tools/fooof
13+
.. |BuildStatus| image:: https://github.com/fooof-tools/fooof/actions/workflows/build.yml/badge.svg
14+
.. _BuildStatus: https://github.com/fooof-tools/fooof/actions/workflows/build.yml
1515

1616
.. |Coverage| image:: https://codecov.io/gh/fooof-tools/fooof/branch/main/graph/badge.svg
1717
.. _Coverage: https://codecov.io/gh/fooof-tools/fooof

0 commit comments

Comments
 (0)