[pre-commit.ci] pre-commit autoupdate #84
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |