Skip to content

🐛 remove model parameters in predict #262

🐛 remove model parameters in predict

🐛 remove model parameters in predict #262

name: CI
on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- "*.md"
- "*.png"
- "*.svg"
- "docs/**"
- ".vscode/**"
pull_request:
branches: [ main ]
paths-ignore:
- "*.md"
- "*.png"
- "*.svg"
- "docs/**"
- ".vscode/**"
jobs:
build-and-test:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "macos-latest - Python 3.9",
os: macos-latest,
python-version: "3.9"
}
- {
name: "windows-latest - Python 3.9",
os: windows-latest,
python-version: "3.9"
}
- {
name: "ubuntu-latest - Python 3.9",
os: ubuntu-latest,
python-version: "3.9"
}
- {
name: "ubuntu-latest - Python 3.10",
os: ubuntu-latest,
python-version: "3.10"
}
- {
name: "ubuntu-latest - Python 3.11",
os: ubuntu-latest,
python-version: "3.11"
}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: segmantic_src
- name: Setup python ${{ matrix.config.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.python-version }}
- name: Pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-{{ matrix.config.python-version }}
restore-keys: |
${{ runner.os }}-pip
- name: Pip install
run: |
python -m pip install --upgrade pip
pip install -e segmantic_src
- name: Pip install dev
run: |
python -m pip install --upgrade pip
pip install -e "segmantic_src[dev]"
- name: Test
working-directory: segmantic_src
run: pytest --cov segmantic --cov-report=xml --cov-config=.coveragerc
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
flags: unittests #optional
working-directory: segmantic_src