Skip to content

Add version dependency #110

Add version dependency

Add version dependency #110

# This workflow will install Python dependencies, run tests, and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python Tests
on:
push:
branches: [ "main" ]
paths:
- '**.py'
- 'requirements.txt'
- 'setup.py'
- 'tox.ini'
- 'pyproject.toml'
pull_request:
branches: [ "main" ]
paths:
- '**.py'
- 'requirements.txt'
- 'setup.py'
- 'tox.ini'
- 'pyproject.toml'
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade Cython
python -m pip install flake8 pytest
pip install tox tox-gh-actions
- name: Test with Tox
run: tox