Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-publish-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
# deploy documentation
#----------------------------------------------
- name: Deploy generated docs
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
# generate HTML from markdown and put into dev version
poetry run mike deploy dev
Expand Down
29 changes: 7 additions & 22 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
# https://github.com/snok/install-poetry#workflows-and-tips

name: Build and test linkml-model

on:
push:
branches: [ main ]
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10"]

runs-on: ${{ matrix.os }}
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/[email protected]
with:
fetch-depth: 0

#----------------------------------------------
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
run: |
pipx install poetry
Expand All @@ -40,14 +31,8 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: "poetry"

#----------------------------------------------
# install dependencies
#----------------------------------------------
- name: Install dependencies
run: poetry install --no-interaction --all-extras --no-root
run: poetry install --no-interaction --no-root

#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run tests
run: make test
Loading