Merge branch 'feature/sphinx_version_fix' into develop #310
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
name: Unit test on push and PR | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
unit-tests: | |
name: Run Unit Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] | |
exclude: | |
- os: ubuntu-latest | |
python-version: '3.6' | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON-VERSION: ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install --upgrade pip | |
- uses: actions/checkout@v3 | |
- run: python -m pip install .[test,docs] | |
- run: python -m pytest ./testing/ --cov=idelib --cov-report=xml -n auto | |
- run: sphinx-build -W -b html docs docs/html | |
- run: sphinx-build -W -b doctest docs docs/doctest | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON-VERSION | |
files: ./coverage.xml | |
name: ${{ matrix.os }} ${{ matrix.python-version }} | |
verbose: true |