Remove banding config and add shapely and pydantic #38
Workflow file for this run
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 | |
on: [push] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
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 | |
pip install -e ".[test]" | |
- name: Test with pytest | |
run: | | |
python -m pytest --cov-report term-missing --cov=src tests | |
coverage json | |
- name: Export summary stats | |
if: runner.os != 'Windows' && matrix.python-version == '3.11' | |
run: | | |
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])") | |
echo "total=$TOTAL" >> $GITHUB_ENV | |
- name: Coverage badge | |
if: runner.os != 'Windows' && matrix.python-version == '3.11' | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.BADGE_SECRET }} | |
gistID: 2d8de651f24d184f5ebe101ffc3c9527 | |
filename: ifk-smhi-coverage-badge.json | |
label: Coverage | |
message: ${{ env.total }}% | |
minColorRange: 50 | |
maxColorRange: 90 | |
valColorRange: ${{ env.total }} |