Njr/bifi boosting #348
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
pytest -s --cov-report term --cov=pyapprox |