Skip to content

Commit

Permalink
Add CI job for compatibility testing (#1225)
Browse files Browse the repository at this point in the history
* Add CI job for compatibility testing

* Remove other CI jobs while WIP

* Use empty pytest.ini files instead of /dev/null

/dev/null results in ugly test paths/ids

* Track changes in IDAES/idaes-compatibility#9

* Revert "Track changes in IDAES/idaes-compatibility#9"

This reverts commit b0853df.

* Revert "Remove other CI jobs while WIP"

This reverts commit e43b569.

* Specify tag for IDAES/idaes-compatibility
  • Loading branch information
lbianchi-lbl authored Aug 4, 2023
1 parent 0d253d3 commit 3880c2c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,25 @@ jobs:
grep_opts=( --recursive --include '*.py' --color=always --after-context=2 --line-number --initial-tab )
grep "$pylint_todo_sentinel" "${grep_opts[@]}" "$pylint_target_dir" || echo "No \"$pylint_todo_sentinel\" comments found in $pylint_target_dir"
compat:
name: Compatibility tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Conda environment
uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: ${{ env.IDAES_CONDA_ENV_NAME_DEV }}
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}
- name: Set up idaes
uses: ./.github/actions/setup-idaes
with:
install-target: -r requirements-dev.txt
- name: Create empty pytest.ini file
run: |
echo "" > pytest.ini
- name: Install and run compatibility tests
run: |
pip install "git+https://github.com/IDAES/idaes-compatibility@0.23.8"
pytest --pyargs idaes_compatibility

0 comments on commit 3880c2c

Please sign in to comment.