Skip to content

Add command to (only) validate a training dataset #851

Add command to (only) validate a training dataset

Add command to (only) validate a training dataset #851

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests
on:
push:
branches: [ main, 0.** ]
pull_request:
branches: [ main, 0.** ]
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.1
Test:
needs: Linting
name: ${{ matrix.env }} - python ${{ matrix.python }} - ${{ matrix.os }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
dev: [false]
python: ["3.9", "3.10"]
env: ["latest"]
include:
- env: latest
os: macos-latest
dev: false
python: "3.10"
- env: latest
os: windows-latest
dev: false
python: "3.10"
steps:
- uses: actions/checkout@v4
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.1-0'
environment-file: ci/envs/${{ matrix.env }}.yml
create-args: >-
python=${{ matrix.python }}
${{ matrix.extra }}
- name: Test
run: |
pytest --color=yes --cov=orthoseg --cov-append --cov-report term-missing --cov-report xml tests/
- uses: codecov/codecov-action@v4