Skip to content

ci: Add pre-commit

ci: Add pre-commit #18

Workflow file for this run

name: Tests
on:
push:
branches:
- master
env:
PYPI: 0
PYPITEST: 1
TWINE_USERNAME: __token__
TWINE_PASSWORD_PYPITEST: ${{ secrets.TWINE_PASSWORD_PYPITEST }}
TWINE_PASSWORD_PYPI: ${{ secrets.TWINE_PASSWORD_PYPI }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python --version
- name: Install test prerequisites
run: |
pip install cython
pip install .[tests]
- name: Run tests
run: python setup.py test -v