update capability table in docs (#65) #32
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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
# todo: use the full test dir | |
env: | |
test-requires: "[test,extra]" | |
test-dir: test/examples | |
pytest-args: >- | |
-rap | |
--durations=20 | |
--verbose | |
# todo: Lint with flake8 | |
# todo: tests conda | |
# todo: coverage | |
jobs: | |
tests-pip: | |
name: Tests (pip, Python ${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade wheel setuptools | |
pip install ".${{ env.test-requires }}" | |
- name: Run tests | |
run: | | |
pytest ${{ env.pytest-args }} ${{ env.test-dir }} |