Skip to content

Commit

Permalink
Merge pull request #59 from foundrytom/work/notebooks
Browse files Browse the repository at this point in the history
Add Jupyter notebook for versioning workflows
  • Loading branch information
foundrytom authored Nov 17, 2023
2 parents 4f73fb6 + c96b92a commit 9eb732d
Show file tree
Hide file tree
Showing 10 changed files with 922 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2023 The Foundry Visionmongers Ltd

name: Examples
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-notebooks:
name: "Test Notebooks ${{ matrix.os }} python-${{ matrix.python }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python: ["3.7", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install .
python -m pip install -r examples/resources/requirements.txt
- name: Test Notebooks
run: jupyter nbconvert --to html --execute examples/*.ipynb
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.egg-info
.ipynb_checkpoints
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenAssetIO-MediaCreation

OpenAssetIO extensions for use in Media Creation
A library of OpenAssetIO extensions for use in Media Creation workflows.

> Note: This repository is currently in a pre-alpha state, and so should
> not be used for any production critical applications.
Expand All @@ -13,6 +13,26 @@ MediaCreation is an automatically generated Python package,
[openassetio-traitgen](https://github.com/OpenAssetIO/OpenAssetIO-TraitGen)
is used to generate trait implementations based on [traits.yml](traits.yml)

## Examples

Code samples of how the Media Creation Traits and Specifications can be
used in production workflows are available in the [examples](./examples)
directory in form of [Jupyter](https://jupyter.org) notebooks.

When [viewed in GitHub](https://github.com/OpenAssetIO/OpenAssetIO-MediaCreation/tree/main/examples)
they will be fully rendered. They can also be explored locally:

```bash
git clone https://github.com/OpenAssetIO/OpenAssetIO-MediaCreation.git
cd OpenAssetIO-MediaCreation
python -m venv .venv
. ./.venv/bin/activate
python -m pip install .
python -m pip install -r examples/resources/requirements.txt
cd examples
jupyter notebook
```

## Project status

These initial incarnations of traits/specifications serve as
Expand Down
Loading

0 comments on commit 9eb732d

Please sign in to comment.