Skip to content

Build and Test Using Pip #356

Build and Test Using Pip

Build and Test Using Pip #356

name: Build and Test Using Pip
on:
# push:
# branches: [master, devel]
# branches: [master]
pull_request:
branches: [devel]
workflow_dispatch:
# # schedule:
# # # * is a special character in YAML so you have to quote this string
# # - cron: '*/0 * * * *' # run once a day
jobs:
pyapprox_unit_tests:
name: Test pip-based build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
python-version: [3.9, '3.10', '3.11']
# exclude:
# # stalls on github actions
# - os: ubuntu-latest
# python-version: 3.8
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Setup PyApprox
run: |
python -m pip install -e .
- name: Test PyApprox
run: |
python -m coverage run -m unittest discover pyapprox
python -m coverage report