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
20 changes: 0 additions & 20 deletions .github/actions/mkdocs_build/action.yaml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: mkdocs
on:
pull_request:
push:
branches:
- main

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
outputs:
page_artifact_id: ${{ steps.upload.outputs.artifact_id }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- run: uv sync --locked --all-extras --all-groups
- run: uv run mkdocs build --strict
- uses: actions/upload-pages-artifact@v4
with:
name: github-pages
path: site
retention-days: "3"

deploy:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}

runs-on: ubuntu-latest
needs: build

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/deploy-pages@v4
with:
artifact_name: github-pages
preview: false
11 changes: 0 additions & 11 deletions .github/workflows/mkdocs_build.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/mkdocs_deploy.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run pytest

on:
pull_request:
push:
branches: [main]

jobs:
pytest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.20"
- name: Set up python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: |
uv sync --all-extras --dev
uv pip install -e .
- name: Run tests
run: uv run pytest -v
27 changes: 0 additions & 27 deletions .github/workflows/run_pytest.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ For complex experiments, you might want to write a Python file that manipulates

For simpler experiments, griddler supports multiple _griddle_ schemas. A griddle is a human-written file, usually a YAML or JSON, that contains some metadata and then whatever is needed to uniquely specify the experiment. See the [griddle](docs/griddles.md) for more details.

In the `v0.4` schema, the trivial example is:
Griddler supports multiple schemas. In the `v0.4` schema, the trivial example is:

```yaml
schema: v0.4
Expand Down Expand Up @@ -115,6 +115,8 @@ Scott Olesen <[email protected]> (CDC/IOD/ORR/CFA)

## Changelog

- v0.4: Breaking change. Griddler's version is now no longer tied to the schemas, which can evolve independently.

See the [repo releases](https://github.com/CDCgov/pygriddler/releases).

---
Expand Down
1,133 changes: 0 additions & 1,133 deletions poetry.lock

This file was deleted.

37 changes: 19 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
[tool.poetry]
[project]
name = "griddler"
version = "0.3.0"
version = "0.4.0"
description = ""
authors = ["Scott Olesen <[email protected]>"]
authors = [{ name = "Scott Olesen", email = "[email protected]" }]
requires-python = ">=3.10"
readme = "README.md"
dependencies = [
"pyyaml>=6.0.1,<7",
"jsonschema>=4.23.0,<5",
]

[tool.poetry.dependencies]
python = "^3.10"
pyyaml = "^6.0.1"
jsonschema = "^4.23.0"
networkx = "^3.4.2"

[tool.poetry.group.dev.dependencies]
mkdocs = "^1.6.0"
mkdocstrings = {extras = ["python"], version = "^0.25.1"}
mkdocs-material = "^9.5.28"
mkdocstrings-python = "^1.10.5"
mdx-truly-sane-lists = "^1.3"
pytest = "^8.3.3"
[dependency-groups]
dev = [
"mkdocs>=1.6.0,<2",
"mkdocstrings[python]>=0.25.1,<0.26",
"mkdocs-material>=9.5.28,<10",
"mkdocstrings-python>=1.10.5,<2",
"mdx-truly-sane-lists~=1.3",
"pytest>=8.3.3,<9",
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"
Loading