-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.33 KB
/
ci.yml
File metadata and controls
52 lines (51 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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