Skip to content

Merge pull request #7 from darkrockmountain/develop #24

Merge pull request #7 from darkrockmountain/develop

Merge pull request #7 from darkrockmountain/develop #24

Workflow file for this run

name: Code Coverage
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
permissions:
contents: read
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
python -m spacy download en_core_web_sm
- name: Run tests with coverage
run: pytest --cov=spacy_ewc --cov-report xml tests/
- name: Upload coverage to Codecov
if: ${{ vars.CODECOV_BRANCHES && contains(fromJson(vars.CODECOV_BRANCHES), github.ref_name) }}
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true