do not treate default_prefix as CURIE prefix for URIs. Fixes #1041 #1237
This file contains hidden or 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
# Built from: | |
# https://github.com/actions/checkout/ | |
# https://github.com/actions/setup-python/ | |
# https://github.com/codecov/codecov-action | |
name: Build and test linkml-runtime | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@4.2.2 | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
pipx inject poetry poetry-dynamic-versioning | |
- uses: actions/setup-python@v5.6.0 | |
with: | |
python-version: 3.13 | |
- name: Check pyproject.toml and poetry.lock | |
run: poetry check | |
- name: Install tox | |
run: python -m pip install tox | |
- name: Run codespell | |
run: tox -e codespell | |
- name: Run code format checks | |
run: tox -e format_check | |
test: | |
needs: | |
- quality-checks | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
# Test on Windows with only the oldest and newest Python versions | |
exclude: | |
- os: windows-latest | |
python-version: "3.10" | |
- os: windows-latest | |
python-version: "3.11" | |
- os: windows-latest | |
python-version: "3.12" | |
# See https://github.com/snok/install-poetry#running-on-windows | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Install Poetry | |
run: | | |
pipx install poetry | |
pipx inject poetry poetry-dynamic-versioning | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5.6.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install library | |
run: | | |
poetry install --no-interaction | |
- name: Generate coverage results | |
# Set bash shell to fail correctly on Windows https://github.com/actions/runner-images/issues/6668 | |
shell: bash | |
run: | | |
poetry run coverage run -m pytest | |
poetry run coverage xml | |
poetry run coverage report -m | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v5 | |
with: | |
name: codecov-results-${{ matrix.os }}-${{ matrix.python-version }} | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: coverage.xml | |
fail_ci_if_error: false |