Skip to content

[pre-commit.ci] pre-commit autoupdate #83

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #83

Workflow file for this run

name: CI
on:
push:
branches:
- main
- setup
pull_request:
branches:
- main
- setup
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
name: Testing on ${{ matrix.os }} with Python ${{ matrix.python }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- "3.9"
- "3.12"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: .
- name: Checkout the mhg spacy model repo
uses: actions/checkout@v4
with:
repository: Middle-High-German-Conceptual-Database/Spacy-Model-for-Middle-High-German
path: mhg
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Python package and run tests
run: |
python -m pip install -e .
python -m pip install -r requirements-dev.txt
cd parzivai
python -m pytest -svv --cov=. --cov-branch --cov-report=xml
env:
SPACY_MHG_MODEL_PATH: ${{ github.workspace }}/mhg
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ssciwr/parzivAI