Skip to content

Preference Redesign #345

Preference Redesign

Preference Redesign #345

Workflow file for this run

name: unit tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop, releases/** ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: add macos-latest
# TODO: change ubuntu-20.04 back to ubuntu-latest when the following issue is resolved:
# https://github.com/actions/setup-python/issues/162
os: [ubuntu-20.04]
python-version: [3.7, 3.8]
exclude:
- os: macos-latest
python-version: [3.5, 3.6]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node
uses: actions/setup-node@v3
with:
# Obtain the latest cached version of npm (either local cache or action cache)
node-version: node
- name: Install Python3 dependencies
run: |
python -m pip install --upgrade pip pytest
pip install -r requirements.txt
python setup.py install
python setup.py build_ext --inplace
python -m pip list
- name: Pin pandas version
if: ${{ matrix.python-version == 3.7 }}
run: |
pip install pandas==1.2.5
python -m pip list | grep pandas
- name: Update Black
if: ${{ matrix.python-version == 3.7 }}
run: |
pip install flake8-pytest-importorskip
pip install --upgrade click==8.0.4
pip install black==21.12b0
pip install flake8==4.0.1
- name: Lint and Format Check with Flake8 and Black
if: ${{ matrix.python-version == 3.7 }}
run: |
black --diff --check .
flake8
- name: Check License Headers
run: |
python license.py verify
- name: Install ExtraP
if: ${{ matrix.python-version >= 3.7 }}
run: |
pip install extrap
- name: Basic Test with pytest
run: |
PYTHONPATH=. $(which pytest)