Skip to content

Merge pull request #12 from rad-lanl/master #15

Merge pull request #12 from rad-lanl/master

Merge pull request #12 from rad-lanl/master #15

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macOS-latest, windows-latest]
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
pip install numpy cython pytest
# # https://github.com/pybind/python_example/blob/master/.github/workflows/pip.yml
# - name: Prepare for Windows 64 bit
# uses: ilammy/msvc-dev-cmd@v1
# with:
# arch: win64
#
# - name: Setuptools Windows environment variables
# with:
# arch: win64
# shell: bash
# run: |
# echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV
# echo "MSSdk=1" >> $GITHUB_ENV
- name: Build with Mac/Linux
run: |
pip install .
- name: Test with pytest
run: |
pytest -v