Switch scalar attribute to vectorized in activity models as well #365
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 | |
on: | |
push: | |
branches: [master, release] | |
pull_request: | |
branches: [master, release] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy3.9'] | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
architecture: ['x86', 'x64'] | |
exclude: | |
# Failures due to lack of numpy wheels | |
# numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. | |
# even 32 bit pypy2 or pypy3 doesn't work | |
- os: windows-latest | |
python-version: pypy3.9 | |
- os: macos-latest | |
python-version: pypy3.9 | |
# no python builds available on macos 32 bit | |
- os: macos-latest | |
architecture: x86 | |
# no python builds available on linux 32 bit | |
- os: ubuntu-latest | |
architecture: x86 | |
# scipy dropped 32 bit windows builds | |
- os: windows-latest | |
architecture: x86 | |
python-version: 3.8 | |
- os: windows-latest | |
architecture: x86 | |
python-version: 3.9 | |
- os: windows-latest | |
architecture: x86 | |
python-version: 3.10 | |
- os: windows-latest | |
architecture: x86 | |
python-version: 3.11 | |
- os: ubuntu-latest | |
python-version: 3.6 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.architecture }} | |
- name: cache Linux | |
uses: actions/cache@v2 | |
if: startsWith(runner.os, 'Linux') | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_test.txt') }} | |
restore-keys: | | |
${{ runner.os }}-${{ runner.architecture }}-${{ runner.python-version }}pip- | |
- name: cache MacOS | |
uses: actions/cache@v2 | |
if: startsWith(runner.os, 'macOS') | |
with: | |
path: ~/Library/Caches/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_test.txt') }} | |
restore-keys: | | |
${{ runner.os }}-${{ runner.architecture }}-${{ runner.python-version }}pip- | |
- name: cache Windows | |
uses: actions/cache@v2 | |
if: startsWith(runner.os, 'Windows') | |
with: | |
path: ~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_test.txt') }} | |
restore-keys: | | |
${{ runner.os }}-${{ runner.architecture }}-${{ runner.python-version }}pip- | |
- name: Install Ubuntu dependencies | |
if: startsWith(runner.os, 'Linux') | |
run: | | |
# Taken from scipy | |
sudo apt-get update | |
sudo apt-get install -y libopenblas-dev libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev libsuitesparse-dev ccache libmpc-dev | |
- name: Install dependencies | |
run: | | |
python -c "import platform; print(platform.platform()); print(platform.architecture())" | |
python -m pip install --upgrade pip | |
python -m pip install wheel | |
pip install -r requirements_test.txt | |
- name: Add numba | |
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' || matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10' || matrix.python-version == '3.11' }} | |
run: | | |
pip install numba | |
- name: Install thermo | |
run: | | |
pip install . | |
- name: Generate Files | |
if: ${{ matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10' || matrix.python-version == '3.11' || matrix.python-version == 'pypy3.9' }} | |
run: | | |
python dev/dump_UNIFAC_assignments_to_sqlite.py | |
- name: Uninstall thermo | |
run: | | |
pip uninstall -y thermo | |
- name: Test with pytest | |
run: | | |
pytest . -v --cov-report html --cov=thermo --cov-report term-missing -m "not online and not sympy and not numba and not CoolProp and not fuzz and not deprecated and not slow" | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.coveralls }} | |
COVERALLS_PARALLEL: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |