Add required file to build docs on Windows (#86) #24
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: Checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
PYTEST_ADDOPTS: --color=yes --pyargs watertap_contrib.reflo | |
PIP_PROGRESS_BAR: "off" | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
version: "~= 22.0" | |
pytest: | |
name: pytest (${{ matrix.os }}/${{ matrix.python-version }}/${{ matrix.install-mode }}) | |
runs-on: ${{ matrix.os-version }} | |
needs: [linting] | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
os: | |
- linux | |
- win64 | |
install-mode: | |
- editable | |
# - noneditable | |
include: | |
- os: linux | |
os-version: ubuntu-latest | |
- os: win64 | |
os-version: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install (editable) | |
if: matrix.install-mode == 'editable' | |
run: | | |
pip install -r requirements-dev.txt | |
# - name: Install (noneditable) | |
# if: matrix.install-mode == 'noneditable' | |
# run: | | |
# pip install . | |
- name: Set up IDAES solvers | |
run: | | |
idaes get-extensions --verbose | |
- name: Run pytest | |
run: | | |
pytest |