Skip to content

Exclude unsupported Python versions from macos-14 #154

Exclude unsupported Python versions from macos-14

Exclude unsupported Python versions from macos-14 #154

name: lint-test-cover-docs
on:
push
jobs:
lint_test_cover_docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-13, macos-14, windows-latest ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
exclude:
- python-version: '3.8'
os: macos-14
- python-version: '3.9'
os: macos-14
- python-version: '3.10'
os: macos-14
xcl: [ 'omit', 'install' ]
name: "Python ${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v4
- name: Install Python.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install the optional rbcl and mclbn256 packages and associated dependencies.
run: |
pip install -U .[rbcl,mclbn256]
if: matrix.xcl == 'install'
- name: Lint and test module.
run: |
pip install -U .[lint,test]
python -m pylint src/oblivious test/test_ristretto.py test/test_bn254.py # 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.os == 'ubuntu-latest' && matrix.python-version == '3.8' && matrix.xcl == 'install'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_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 ..