Skip to content

updated CI to use a separate requirements file #122

updated CI to use a separate requirements file

updated CI to use a separate requirements file #122

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements/test.txt') }}
- name: Install pip dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements/test.txt
- name: Download spaCy model
run: python -m spacy download en_core_web_sm
- name: Run tests
run: |
pytest tests