Skip to content

Re-enable OWL generation #568

Re-enable OWL generation

Re-enable OWL generation #568

Workflow file for this run

# 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 sssom
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
#----------------------------------------------
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
#----------------------------------------------
# setup Python
#----------------------------------------------
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.6.0
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
#----------------------------------------------
# install dependencies
#----------------------------------------------
- name: Install dependencies
run: poetry install --no-interaction --all-extras --no-root
#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run tests
run: make test
#----------------------------------------------
# YAML linting
#----------------------------------------------
- name: Install
run: npm install prettier
- name: Lint YML
run: npx prettier --check --prose-wrap always "**/*.yml"
- name: Lint YAML
run: npx prettier --check --prose-wrap always "**/*.yaml"