Skip to content

Bump python to 3.10 in run-tests.yml #29

Bump python to 3.10 in run-tests.yml

Bump python to 3.10 in run-tests.yml #29

Workflow file for this run

name: Run Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Setup a local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Cache the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- name: Install spacy language model
run: poetry run python -m spacy download en_core_web_md
- name: Run tests
run: poetry run pytest -v