Skip to content

attempt to upgrade to linkml 1.7 compatibility, mimicing docgen's interaction with generator superclass #29

attempt to upgrade to linkml 1.7 compatibility, mimicing docgen's interaction with generator superclass

attempt to upgrade to linkml 1.7 compatibility, mimicing docgen's interaction with generator superclass #29

Workflow file for this run

name: Pull request unit tests
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9]
services:
solr:
image: solr:8
options: --name my_solr
ports:
- 8983:8983
steps:
- uses: actions/checkout@v2
- name: Sleep for 15 seconds to give Solr time to start
run: sleep 15s
shell: bash
- name: Confirm that Solr is answering
run: curl -s -o /dev/null -w "%{http_code}" http://localhost:8983/solr/ || exit 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1.3
with:
virtualenvs-create: true
virtualenvs-in-project: true
# load cached venv if cache exists
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction
- name: run tests
run: poetry run python -m unittest -v