File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments