add spacy download to github actions #49
This file contains 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: tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install package | |
run: pip install -e . | |
- name: Download spacy English resource | |
run: python3 -m spacy download en_core_web_sm | |
- name: Save ADS api key | |
run: | | |
mkdir ~/.ads | |
echo ${{ secrets.ADS_API_KEY }} > ~/.ads/dev_key | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
pytest |