Skip to content

Build and Test Using Pip #369

Build and Test Using Pip

Build and Test Using Pip #369

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.10', '3.11', '3.12']
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 run_tests.py
# use of coverage slows down tests
# python -m coverage run -m unittest discover pyapprox
# python -m coverage report