Skip to content

Commit

Permalink
Merge pull request #28 from khaeru/message-ix-compat
Browse files Browse the repository at this point in the history
Adjust for compatibility with message-ix; remove .compat.ixmp
  • Loading branch information
khaeru committed Feb 13, 2021
2 parents c16b5fd + b71b41f commit 3b6c969
Show file tree
Hide file tree
Showing 38 changed files with 874 additions and 1,462 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- "3.7" # Earliest version supported by genno; matches xarray
- "3.6" # Earliest version supported by genno; matches xarray
- "3.8" # Latest version testable on GitHub Actions

# For development versions of Python, compiled binary wheels are not
Expand All @@ -37,7 +37,7 @@ jobs:
# This job triggers error when importing ixmp.testing: no module named
# ixmp.backend. Not critical, since it's upstream.
- os: windows-latest
python-version: "3.7"
python-version: "3.6"

fail-fast: false

Expand Down Expand Up @@ -118,11 +118,11 @@ jobs:

- name: Install Python package and dependencies
working-directory: genno
run: pip install .[docs,tests]
run: pip install --editable .[docs,tests]

- name: Run test suite using pytest
working-directory: genno
run: pytest genno --trace-config --verbose --cov-report=xml --color=yes
run: pytest genno --trace-config --verbose --cov-report=xml --cov-report=term --color=yes

- name: Test documentation build using Sphinx
if: ${{ startsWith(matrix.os, 'ubuntu') }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ dist
.benchmarks
.coverage*
.pytest_cache
coverage.xml
htmlcov
# Generated by .tests.core.test_computer.test_cache()
myfunc2-*.pkl

# mypy
Expand Down
6 changes: 2 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Include ixmp test fixtures, e.g. pre-populated Scenario objects
# TODO remove this dependency
# NB genno must follow ixmp, since pytest prefers fixtures etc. from later in the list
pytest_plugins = ("ixmp.testing", "genno.testing")
# Use fixtures from the .testing module
pytest_plugins = ("genno.testing",)

0 comments on commit 3b6c969

Please sign in to comment.