Change license to MIT #42
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: iceotherm workflow including Codecov | |
on: [push] | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: '3.7' | |
steps: | |
- uses: actions/checkout@main | |
- name: Setup Python | |
uses: actions/setup-python@main | |
with: | |
python-version: 3.7 | |
- name: Install iceotherm | |
run: python -m pip install . | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
pip install pytest-cov | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
pytest --cov=./iceotherm/lib/ --cov-report=xml --cov-config=./.coveragerc | |
#coverage run --source iceotherm --omit=iceotherm/tests/* -m pytest | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
verbose: true |