Update action versions and Python versions in GitHub Actions testing … #22
This file contains hidden or 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
| name: lint-test-cover-docs | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| workflow_call: # If invoked by build-publish-sign-release workflow. | |
| jobs: | |
| lint_test_cover_docs: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| name: Python ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Python. | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Lint and test module. | |
| run: | | |
| pip install -U .[lint,test] | |
| python -m pylint ge25519 test/test_ge25519.py # Check against linting rules. | |
| python -m pytest # Run tests. | |
| python src/ge25519/ge25519.py -v # Run tests via execution. | |
| python test/test_ge25519.py -v # Test reference bit vector generation. | |
| - name: Publish coverage results. | |
| run: | | |
| pip install -U .[coveralls] | |
| python -m coveralls --service=github # Submit to coveralls. | |
| if: matrix.python-version == '3.12' | |
| 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 .. && make html && cd .. |