Skip to content

Add workflow for automatic PyPI publishing #13

Add workflow for automatic PyPI publishing

Add workflow for automatic PyPI publishing #13

name: Python package unit testing
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nose
pip install -r requirements.txt
- name: Build package
run: |
python setup.py build
- name: Run unit tests
run: |
nosetests -v