File tree 4 files changed +50
-23
lines changed
4 files changed +50
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : Run unit tests
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ workflow_dispatch :
9
+ schedule :
10
+ # Run every Sunday at 03:53 UTC
11
+ - cron : 13 3 * * 0
12
+
13
+ jobs :
14
+ tests :
15
+ name : ${{ matrix.os }}, ${{ matrix.tox_env }}
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ matrix :
19
+ include :
20
+ - os : ubuntu-latest
21
+ python : ' 3.7'
22
+ tox_env : ' py37'
23
+ - os : ubuntu-latest
24
+ python : ' 3.8'
25
+ tox_env : ' py38'
26
+ - os : ubuntu-latest
27
+ python : ' 3.9'
28
+ tox_env : ' py39'
29
+
30
+ steps :
31
+ - uses : actions/checkout@v2
32
+ with :
33
+ fetch-depth : 0
34
+ - name : Set up Python ${{ matrix.python-version }}
35
+ uses : actions/setup-python@v2
36
+ with :
37
+ python-version : ${{ matrix.python-version }}
38
+ - name : Install Tox
39
+ run : python -m pip install tox coverage
40
+ - name : Run Tox
41
+ run : tox -e ${{ matrix.tox_env }}
42
+ - name : Convert coverage
43
+ run : python -m coverage xml
44
+ - name : Upload coverage to Codecov
45
+ uses : codecov/codecov-action@v1
46
+ with :
47
+ fail_ci_if_error : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- .. image :: https://travis-ci.org /musevlt/muse-psfr.svg?branch=master
2
- :target: https://travis-ci.org /musevlt/muse-psfr
1
+ .. image :: https://github.com /musevlt/muse-psfr/workflows/Run%20unit%20tests/badge .svg
2
+ :target: https://github.com /musevlt/muse-psfr
3
3
4
4
.. image :: https://codecov.io/gh/musevlt/muse-psfr/branch/master/graph/badge.svg
5
5
:target: https://codecov.io/gh/musevlt/muse-psfr
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py36, py37,py38
2
+ envlist = py37,py38,py39
3
3
requires =
4
4
virtualenv >= 20
5
5
You can’t perform that action at this time.
0 commit comments