Add --version #22
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_python: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [ubuntu-latest, macos-latest, windows-latest] | |
# From https://endoflife.date/python | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{matrix.runner}} | |
name: OS ${{matrix.runner}} Python ${{matrix.python-version}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: Install package | |
run: | | |
pip install -U pip | |
pip install -e . | |
- name: Check Python version | |
run: python -V | |
- name: List Python dependencies | |
run: pip freeze | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pytest -vs |