-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
3,494 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: lint-test-cover-docs | ||
on: | ||
push | ||
jobs: | ||
lint_test_cover_docs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10'] | ||
name: "Python ${{ matrix.python-version }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Python. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Lint and test module. | ||
run: | | ||
pip install -U .[lint,test] | ||
# python -m pylint tecdsa # Check against linting rules. | ||
python -m pytest # Run tests. | ||
- name: Publish coverage results. | ||
run: | | ||
pip install -U .[coveralls] | ||
python -m coveralls --service=github # Submit to coveralls. | ||
if: matrix.python-version == '3.11' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
- name: Test auto-generation of documentation. | ||
run: | | ||
pip install -U .[docs] | ||
cd docs && sphinx-apidoc -f -E --templatedir=_templates -o _source ../src && make html && cd .. |
Oops, something went wrong.