Skip to content

Merge pull request #10 from darkrockmountain/fix/restrict-packages-wr… #34

Merge pull request #10 from darkrockmountain/fix/restrict-packages-wr…

Merge pull request #10 from darkrockmountain/fix/restrict-packages-wr… #34

Workflow file for this run

name: Test and Lint
# The Test and Lint is executed for all branches.
on: [push, pull_request]
permissions:
contents: read
jobs:
test-lint:
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
run: pytest -x --disable-warnings
- name: Run linting with flake8
run: |
flake8 spacy_ewc/ examples/
- name: Check code formatting with black
run: black --check spacy_ewc/ examples/
- name: Run EWC example script
run: python examples/ewc_ner_training_example.py