Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,37 @@ jobs:
exit 1
fi

build-pyam:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
pip install --upgrade pip wheel
pip install -e .[tests]
pip install pyam-iamc

- name: Test with pytest
env:
MIN_COVERAGE: 90
run: |
pytest tests -r a --cov=scmdata --cov-report=xml
if ! coverage report --fail-under=${MIN_COVERAGE} --show-missing
then
echo
echo "Error: Test coverage has to be at least ${MIN_COVERAGE}"
exit 1
fi

test-notebooks:
runs-on: ubuntu-latest
strategy:
Expand Down