Skip to content

feat: band mask created by hand #115

feat: band mask created by hand

feat: band mask created by hand #115

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout code 📂
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rye 🌾
id: setup-rye
uses: eifinger/setup-rye@v3
with:
version: "0.35.0"
- name: Pin python-version ${{ matrix.python-version }} 📌
run: rye pin ${{ matrix.python-version }}
- name: Cache dependencies 📦
uses: actions/cache@v4
with:
path: ./venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('requirements.lock') }}-${{ hashFiles('requirements-dev.lock') }}
- name: Install dependencies 🛠️
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
rye sync
- name: Cache pre-commit 📦
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit 🚦
run: |
rye run pre-commit run --all-files --show-diff-on-failure --color always
- name: Run tests 🧪
run: |
rye test
- name: Upload coverage report to Codecov 📈
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests