Skip to content

Regenerate units excuses, add header, clean up units directory, and update CI #2601

Regenerate units excuses, add header, clean up units directory, and update CI

Regenerate units excuses, add header, clean up units directory, and update CI #2601

Workflow file for this run

# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
name: Build and test nmdc-schema
on: [ pull_request ]
# Cancel outdated runs when new commits are pushed to the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.13' ]
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
run: poetry install
#----------------------------------------------
# build, test, and quality checks
#----------------------------------------------
- name: Clean previous build artifacts
run: make squeaky-clean
- name: Build schema artifacts
run: make all
- name: Regenerate units reports
run: make -C units fast
- name: Run tests
run: make test
- name: Run LinkML linting
run: make linkml-lint
- name: Check dependencies (deptry)
run: make check-dependencies