Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenny's demo notebook #33

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
52 changes: 26 additions & 26 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-format-render
name: format-test

on:
push:
Expand All @@ -7,11 +7,34 @@ on:
branches: [dev]

jobs:
format:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install project
run: |
poetry install
- name: Format code with black
run: |
poetry run black .
- name: Commit and push changes to repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Automated code format'

test:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
python-version: ["3.10", "3.12", "3.13"]
poetry-version: [latest]
os: [ubuntu-latest]
defaults:
Expand All @@ -32,27 +55,4 @@ jobs:
run: |
poetry run pytest tests
outputs:
matrix: ${{ toJson(matrix) }}

render:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Install project
run: |
poetry install
- name: Format code with black
run: |
poetry run black .
- name: Commit and push changes to repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Automated code format'
matrix: ${{ toJson(matrix) }}
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Temporarily ignoring docs folder until I learn how to automate Sphinx doc build
docs

# VSCode files
.vscode

# demo files
docs/data/

# Byte-compiled / optimized / DLL files
*__pycache__/
*.py[cod]
Expand Down Expand Up @@ -114,8 +114,8 @@ venv.bak/
# Rope project settings
.ropeproject

# mkdocs documentation
/site
# rendered documentation
_site/

# mypy
.mypy_cache/
Expand Down
8 changes: 8 additions & 0 deletions News
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# All updates will be detailed here

## Version 1.1.4

- Added a demo project by Jenny Xu

## Version 1.1.3

- Migrated from Sphinx to Quarto documentation

## Version 1.1.2

- Updated dependencies
Expand Down
12 changes: 11 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
project:
type: website
output-dir: docs
output-dir: _site

website:
title: "imfp"
navbar:
left:
- href: index.qmd
text: Home
- href: docs/demo.qmd
text: Demo
right:
- icon: github
href: https://github.com/Promptly-Technologies-LLC/imfp
page-footer:
left: "Copyright 2024, Promptly Technologies, LLC. MIT License."
right:
- icon: github
href: https://github.com/Promptly-Technologies-LLC/imfp

format:
html:
Expand Down
Loading
Loading