File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 55 - ' README.md'
66 tags :
77 - ' *'
8+ workflow_dispatch :
9+ inputs :
10+ test :
11+ description : " Testing pipeline"
12+ required : true
13+ default : " test.yml"
14+
815
916jobs :
1017 build-n-publish :
1118 name : Publish Python distribution
1219 runs-on : ubuntu-18.04
13- strategy :
14- matrix :
15- python-version : [3.6, 3.7, 3.8, 3.9]
20+ with :
21+ python-version : 3.9
1622 steps :
1723 - uses : actions/checkout@master
1824 - name : Setup Python 3.6
Original file line number Diff line number Diff line change 1+ name : Publish Python distribution to PyPI and TestPyPI
2+ on :
3+ push :
4+ paths-ignore :
5+ - ' README.md'
6+
7+ jobs :
8+ build-n-publish :
9+ name : Publish Python distribution
10+ runs-on : ubuntu-18.04
11+ strategy :
12+ matrix :
13+ python-version : [3.6, 3.7, 3.8, 3.9]
14+ steps :
15+ - uses : actions/checkout@master
16+ - name : Setup Python 3.6
17+ uses : actions/setup-python@v1
18+ with :
19+ python-version : ${{ matrix.python-version }}
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ - name : Lint with flake8
24+ run : |
25+ pip install flake8
26+ flake8 . --max-line-length=1000
27+ - name : Test with pytest
28+ run : |
29+ pip install pytest
30+ pip install pytest-cov
31+ pytest ./tests/tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
You can’t perform that action at this time.
0 commit comments