added support for xarray for lcppn #4
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: Test PR | |
on: [pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8==4.0.1 | |
python -m pip install pytest==7.1.2 | |
python -m pip install pytest-flake8==1.1.1 | |
python -m pip install pydocstyle==6.1.1 | |
python -m pip install pytest-pydocstyle==2.3.0 | |
python -m pip install pytest-cov==3.0.0 | |
python -m pip install ray | |
python -m pip install . | |
- name: Test with pytest | |
run: | | |
pytest -v --flake8 --pydocstyle --cov=hiclass --cov-fail-under=90 --cov-report html | |
coverage xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v2 |