echo doc version #555
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: Run test suite | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: pip install -e ".[all,ci]" | |
- name: Run tests | |
run: | | |
pytest -v --cov-report= --cov=src/pymanopt tests/ | |
coverage lcov -o coverage/lcov.info | |
- name: Collect coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: ${{ matrix.python-version }} | |
parallel: true | |
finish: | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |