File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1717 run : |
1818 python -m pip install --upgrade pip
1919 pip install setuptools wheel twine
20+ - name : Make sure unit tests succeed
21+ run : |
22+ pip install -r test/test_requirements.txt
23+ pip install -e .
24+ pytest
2025 - name : Build and publish
2126 env :
2227 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change 1+ name : pytest
2+ on : [push]
3+ jobs :
4+ run :
5+ runs-on : ${{ matrix.os }}
6+ strategy :
7+ matrix :
8+ os : [ubuntu-latest, macos-latest, windows-latest]
9+ steps :
10+ - uses : actions/checkout@master
11+ - name : Setup Python
12+ uses : actions/setup-python@master
13+ with :
14+ python-version : 3.7
15+ - name : Generate coverage report
16+ run : |
17+ pip install -r test/test_requirements.txt
18+ pip install -e .
19+ pytest --cov=mkdocs_git_revision_date_localized_plugin --cov-report=xml
20+ - name : Static code checking with pyflakes
21+ run : |
22+ pip install pyflakes
23+ pyflakes mkdocs_git_revision_date_localized_plugin
24+ - name : Upload coverage to Codecov
25+ uses : codecov/codecov-action@v1
26+ with :
27+ token : ${{ secrets.CODECOV_TOKEN }}
28+ file : ./coverage.xml
29+ flags : unittests
30+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments